blob: 4813677a054dd54e943eb32759e7148af6941a27 [file] [log] [blame]
description(
"Tests uses of 'arguments' that are aliased but span code origins."
);
function foo() {
return arguments;
}
function bar(a) {
var result = 0;
for (var i = 0; i < a.length; ++i)
result += a[i];
return result;
}
function baz(x) {
return bar(foo(x));
}
dfgShouldBe(baz, "baz(42)", "42");