elements: []
});
break;
+ case "Function":
+ self.expression = make_node(AST_Function, self.expression, {
+ argnames: [],
+ body: []
+ });
+ break;
+ case "Number":
+ self.expression = make_node(AST_Number, self.expression, {
+ value: 0
+ });
+ break;
case "Object":
self.expression = make_node(AST_Object, self.expression, {
properties: []
});
break;
+ case "RegExp":
+ self.expression = make_node(AST_RegExp, self.expression, {
+ value: /t/
+ });
+ break;
case "String":
self.expression = make_node(AST_String, self.expression, {
value: ""
}
input: {
Array.prototype.splice.apply(a, [1, 2, b, c]);
+ Function.prototype.call.apply(console.log, console, [ "foo" ]);
+ Number.prototype.toFixed.call(Math.PI, 2);
Object.prototype.hasOwnProperty.call(d, "foo");
+ RegExp.prototype.test.call(/foo/, "bar");
String.prototype.indexOf.call(e, "bar");
}
expect: {
[].splice.apply(a, [1, 2, b, c]);
+ (function() {}).call.apply(console.log, console, [ "foo" ]);
+ 0..toFixed.call(Math.PI, 2);
({}).hasOwnProperty.call(d, "foo");
+ /t/.test.call(/foo/, "bar");
"".indexOf.call(e, "bar");
}
}