blob: c204b7d5fa9fe2970bcbe4488432a041f9250c50 [file] [log] [blame]
function test() {
return (function (a = "baz", b = "qux", c = "quux") {
a = "corge";
// The arguments object is not mapped to the
// parameters, even outside of strict mode.
return arguments.length === 2
&& arguments[0] === "foo"
&& arguments[1] === "bar";
}("foo", "bar"));
}
if (!test())
throw new Error("Test failed");