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