1 This test checks that variable declaration 'var arguments;' doesn't override function's local arguments object.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS 'object' is 'object'
7 PASS argumentsLength() is 0
8 PASS 'object' is 'object'
9 PASS argumentsLength(1) is 1
10 PASS 'object' is 'object'
11 PASS argumentsLength('a','b') is 2
12 PASS 'object' is 'object'
13 PASS argumentsLengthInnerBlock() is 0
14 PASS 'object' is 'object'
15 PASS argumentsLengthInnerBlock(1) is 1
16 PASS 'object' is 'object'
17 PASS argumentsLengthInnerBlock('a','b') is 2
18 PASS argumentsLengthInnerBlock2() is 0
19 PASS argumentsLengthInnerBlock2(1) is 1
20 PASS argumentsLengthInnerBlock2('a','b') is 2
21 PASS argumentsLengthTryCatch() is 0
22 PASS argumentsLengthWith() is 0
23 PASS 'object' is 'object'
24 PASS 'object' is 'object'
26 PASS argumentsLengthOverride() is 0
27 PASS 'object' is 'object'
28 PASS 'object' is 'object'
30 PASS argumentsLengthOverride(1) is 1
31 PASS 'object' is 'object'
32 PASS 'object' is 'object'
34 PASS argumentsLengthOverride('a','b') is 2
35 PASS 'object' is 'object'
37 PASS argumentsLengthOverrideInnerBlock() is 0
38 PASS 'object' is 'object'
40 PASS argumentsLengthOverrideInnerBlock(1) is 1
41 PASS 'object' is 'object'
43 PASS argumentsLengthOverrideInnerBlock('a','b') is 2
44 PASS 'object' is 'object'
46 PASS argumentsLengthOverrideInnerBlock2() is 0
47 PASS 'object' is 'object'
49 PASS argumentsLengthOverrideInnerBlock2(1) is 1
50 PASS 'object' is 'object'
52 PASS argumentsLengthOverrideInnerBlock2('a','b') is 2
53 PASS 'object' is 'object'
55 PASS argumentsLengthOverrideInnerBlock3() is 0
56 PASS 'object' is 'object'
58 PASS argumentsLengthOverrideInnerBlock3(1) is 1
59 PASS 'object' is 'object'
61 PASS argumentsLengthOverrideInnerBlock3('a','b') is 2
62 PASS argumentsTearOff1() is 2
63 PASS typeof undefined is 'undefined'
64 PASS 'undefined' is 'undefined'
65 PASS typeof arguments is 'object'
66 PASS 'undefined' is 'undefined'
67 PASS 'object' is 'object'
69 PASS successfullyParsed is true