haikuwebkit/LayoutTests/js/script-tests/dfg-arguments-strict-mode.js

12 lines
240 B
JavaScript

description(
"Tests what happens when you use arguments in strict mode and present the DFG with a tempting optimization opportunity."
);
function f(a) {
"use strict";
a = 5;
return arguments[0];
}
dfgShouldBe(f, "f(1)", "1");