macro in constructor fails.
Created by: stefanpenner
macro in constructor fails.
given:
macro a_slice {
rule { ($arguments) } => {
var length = $arguments.length;
var args = new Array(length);
for ( var i = 0; i < length; i++) {
args[$arguments[i]];
}
args;
}
}
// fails
var a = new Promise(function(){
a_slice(arguments);
});
// works
var a = Promise(function(){
a_slice(arguments);
});