OLD | NEW |
1 Tests to ensure that Function.apply works correctly for Arrays, arguments and ar
ray-like objects. | 1 Tests to ensure that Function.apply works correctly for Arrays, arguments and ar
ray-like objects. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 PASS argumentsApply1(1, 2, 3) is 1 | 6 PASS argumentsApply1(1, 2, 3) is 1 |
7 PASS argumentsApply2(1, 2, 3) is 2 | 7 PASS argumentsApply2(1, 2, 3) is 2 |
8 PASS argumentsApply3(1, 2, 3) is 3 | 8 PASS argumentsApply3(1, 2, 3) is 3 |
9 PASS argumentsApplyLength(1, 2, 3) is 3 | 9 PASS argumentsApplyLength(1, 2, 3) is 3 |
10 PASS argumentsApplyExcessArguments(1, 2, 3) is 3 | 10 PASS argumentsApplyExcessArguments(1, 2, 3) is 3 |
(...skipping 15 matching lines...) Expand all Loading... |
26 PASS argumentsApplyChangeLength3(1) is 2 | 26 PASS argumentsApplyChangeLength3(1) is 2 |
27 PASS argumentsApplyChangeLength4(1) is 0 | 27 PASS argumentsApplyChangeLength4(1) is 0 |
28 PASS argumentsApplyChangeLength5(1) is 0 | 28 PASS argumentsApplyChangeLength5(1) is 0 |
29 PASS arrayApplyChangeLength1() is 2 | 29 PASS arrayApplyChangeLength1() is 2 |
30 PASS arrayApplyChangeLength2() is 2 | 30 PASS arrayApplyChangeLength2() is 2 |
31 PASS arrayApplyChangeLength3() is 2 | 31 PASS arrayApplyChangeLength3() is 2 |
32 PASS arrayApplyChangeLength4() is 0 | 32 PASS arrayApplyChangeLength4() is 0 |
33 PASS var a = []; a.length = 0xFFFE; [].constructor.apply('', a).length is 0xFFFE | 33 PASS var a = []; a.length = 0xFFFE; [].constructor.apply('', a).length is 0xFFFE |
34 PASS var a = []; a.length = 0xFFFF; [].constructor.apply('', a).length is 0xFFFF | 34 PASS var a = []; a.length = 0xFFFF; [].constructor.apply('', a).length is 0xFFFF |
35 PASS var a = []; a.length = 0x10000; [].constructor.apply('', a).length is 0x100
00 | 35 PASS var a = []; a.length = 0x10000; [].constructor.apply('', a).length is 0x100
00 |
36 PASS var a = []; a.length = 0x10001; [].constructor.apply('', a).length threw ex
ception RangeError: Maximum call stack size exceeded.. | 36 FAIL var a = []; a.length = 0x10001; [].constructor.apply('', a).length should t
hrow an exception. Was 65537. |
37 PASS var a = []; a.length = 0xFFFFFFFE; [].constructor.apply('', a).length threw
exception RangeError: Maximum call stack size exceeded.. | 37 PASS var a = []; a.length = 0xFFFFFFFE; [].constructor.apply('', a).length threw
exception RangeError: Maximum call stack size exceeded. |
38 PASS var a = []; a.length = 0xFFFFFFFF; [].constructor.apply('', a).length threw
exception RangeError: Maximum call stack size exceeded.. | 38 PASS var a = []; a.length = 0xFFFFFFFF; [].constructor.apply('', a).length threw
exception RangeError: Maximum call stack size exceeded. |
39 PASS (function(a,b,c,d){ return d ? -1 : (a+b+c); }).apply(undefined, {length:3,
0:100, 1:20, 2:3}) is 123 | 39 PASS (function(a,b,c,d){ return d ? -1 : (a+b+c); }).apply(undefined, {length:3,
0:100, 1:20, 2:3}) is 123 |
40 PASS successfullyParsed is true | 40 PASS successfullyParsed is true |
41 | 41 |
42 TEST COMPLETE | 42 TEST COMPLETE |
43 | 43 |
OLD | NEW |