blob: fc8f2df833cc41632bba37711cc69c1bea1fec70 [file] [log] [blame]
description(
"Tests aliased uses of 'arguments' that escape."
);
function foo() {
var result = 0;
var a = arguments;
for (var i = 0; i < a.length; ++i)
result += a[i];
return [result, a];
}
function bar(x) {
var result = foo(x);
return result[0] * result[1][0];
}
dfgShouldBe(bar, "bar(42)", "1764");