blob: 5f899243b77c445d673c1d4ff6304bb07aca21d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
function f() {
var a = arguments;
eval("assertEq(arguments[0], 42)");
eval("assertEq(arguments, a)");
arguments = undefined;
eval("assertEq(arguments, undefined)");
arguments = a;
eval("assertEq(arguments[0], 42)");
eval("assertEq(arguments, a)");
}
f(42);
function f(z) {
var a = arguments;
eval("assertEq(arguments[0], 42)");
eval("assertEq(arguments, a)");
arguments = undefined;
eval("assertEq(arguments, undefined)");
z = 17;
eval("assertEq(a[0], 17)");
a[0] = 'ponies';
eval("assertEq(z, 'ponies')");
}
f(42);
|