blob: a19e834966e94e43a3b365fce05fe340dfc885f9 [file] [log] [blame]
description(
"This tests that expressions of the form x = x.apply(...) don't break bytecode generation."
);
function foo(a,b) {
return a+b;
}
function bar() {
var x;
x = foo;
var array = [];
array.push(1);
array.push(2);
x = x.apply(void(0), array);
return x;
}
shouldBe("bar()", "3");