fix tests

This commit is contained in:
alexlamsl
2017-12-24 19:21:31 +08:00
parent dbf8684287
commit 7de541f9c8
5 changed files with 11 additions and 14 deletions

View File

@@ -489,10 +489,14 @@ hoist_function_with_call: {
console.log(o.p.name, o.p === o.p, o.p(o.x), o.p(o.y));
}
expect: {
var o_p = function Foo(value){
return 10 * value
var o = {
p: function Foo(value) {
return 10 * value;
},
x: 1,
y: 2
};
console.log(o_p.name, true, o_p(1), o_p(2));
console.log(o.p.name, o.p == o.p, o.p(o.x), o.p(o.y));
}
expect_stdout: "Foo true 10 20"
}