| OLD | NEW |
| 1 CONSOLE ERROR: line 1: Uncaught TypeError: var 'bar' has already been declared | 1 CONSOLE ERROR: line 1: Uncaught TypeError: var 'bar' has already been declared |
| 2 This test checks that const declarations in JavaScript work and are readonly. | 2 This test checks that const declarations in JavaScript work and are readonly. |
| 3 | 3 |
| 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 5 | 5 |
| 6 | 6 |
| 7 PASS const redef='a'; const redef='a'; threw exception TypeError: const 'redef'
has already been declared. | 7 PASS const redef='a'; const redef='a'; threw exception TypeError: const 'redef'
has already been declared. |
| 8 PASS x is "RIGHT" | 8 PASS x is "RIGHT" |
| 9 PASS y is "RIGHT" | 9 PASS y is "RIGHT" |
| 10 PASS a is 1 | 10 PASS a is 1 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 PASS one is 1 | 45 PASS one is 1 |
| 46 PASS one = 2 is 2 | 46 PASS one = 2 is 2 |
| 47 PASS one is 1 | 47 PASS one is 1 |
| 48 PASS object.inWith1 is 'RIGHT' | 48 PASS object.inWith1 is 'RIGHT' |
| 49 PASS inWith2 is 'RIGHT' | 49 PASS inWith2 is 'RIGHT' |
| 50 PASS (function(){ one = 2; return one; })() is 1 | 50 PASS (function(){ one = 2; return one; })() is 1 |
| 51 PASS f() is f | 51 PASS f() is f |
| 52 PASS const a; is undefined | 52 PASS const a; is undefined |
| 53 FAIL bodyId should be [object HTMLBodyElement] (of type object). Was Const initi
aliser overwrote existing property (of type string). | 53 FAIL bodyId should be [object HTMLBodyElement] (of type object). Was Const initi
aliser overwrote existing property (of type string). |
| 54 PASS ranConstInitialiser is true | 54 PASS ranConstInitialiser is true |
| 55 FAIL successfullyParsed should be true (of type boolean). Was undefined (of type
undefined). | 55 FAIL successfullyParsed should be true. Was false. |
| 56 | 56 |
| 57 TEST COMPLETE | 57 TEST COMPLETE |
| 58 | 58 |
| OLD | NEW |