blob: b2c316ddccddf36517ed576ce75a3d833f47efc7 [file] [log] [blame]
description(
"Tests functions that use 'arguments' in both an aliased and a non-aliased way."
);
function foo() {
var result = 0;
var a = arguments;
for (var i = 0; i < a.length; ++i)
result += arguments[i];
return result;
}
function bar(x) {
return foo(x);
}
dfgShouldBe(bar, "bar(42)", "42");