blob: bc2b430112c020b758e01e904a76e149e3e729b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Test that var declarations of arguments "shadows" the arguments binding
// used in parameter expressions.
function g8(h = () => arguments) {
var arguments = 0;
assertEq(arguments, 0);
assertEq(arguments === h(), false);
}
g8();
function g9(h = () => arguments) {
var arguments;
assertEq(void 0 === arguments, false);
assertEq(h(), arguments);
arguments = 0;
assertEq(arguments, 0);
assertEq(arguments === h(), false);
}
g9();
if (typeof reportCompare === "function")
reportCompare(true, true);
|