-1:000000000000 | 0:64d846305189 |
---|---|
1 /* | |
2 * Any copyright is dedicated to the Public Domain. | |
3 * http://creativecommons.org/licenses/publicdomain/ | |
4 */ | |
5 load(libdir + 'array-compare.js'); | |
6 | |
7 var obj = {}; | |
8 | |
9 function strictAssignArgumentsElement(a) | |
10 { | |
11 "use strict"; | |
12 arguments[0] = 42; | |
13 return a; | |
14 } | |
15 | |
16 for (var i = 0; i < 5; i++) | |
17 { | |
18 assertEq(strictAssignArgumentsElement(), undefined); | |
19 assertEq(strictAssignArgumentsElement(obj), obj); | |
20 assertEq(strictAssignArgumentsElement(17), 17); | |
21 } |