15 lines
353 B
JavaScript
15 lines
353 B
JavaScript
description(
|
|
"Tests that if you alias the arguments in a very small function, arguments simplification still works."
|
|
);
|
|
|
|
function foo() {
|
|
var args = arguments;
|
|
return args[0] + args[1];
|
|
}
|
|
|
|
silentTestPass = true;
|
|
noInline(foo);
|
|
|
|
for (var i = 0; i < 200; i = dfgIncrement({f:foo, i:i + 1, n:100}))
|
|
shouldBe("foo(i, i + 1)", "" + (i + i + 1));
|