OLD | NEW |
1 Tests that evaluating object literal in the console correctly reported. | 1 Tests that evaluating object literal in the console correctly reported. |
2 | 2 |
3 {a:1, b:2} | 3 {a:1, b:2} |
4 Object {a: 1, b: 2} | 4 Object {a: 1, b: 2} |
5 {a:1} | 5 {a:1} |
6 Object {a: 1} | 6 Object {a: 1} |
7 {var a = 1; eval("{ a:1, b:2 }");} | 7 {var a = 1; eval("{ a:1, b:2 }");} |
8 VM:1 Uncaught SyntaxError: Unexpected token :(…) | 8 VM:1 Uncaught SyntaxError: Unexpected token : |
9 (anonymous function) @ VM:1 | 9 (anonymous function) @ VM:1 |
10 { for (var i = 0; i < 5; ++i); } | 10 { for (var i = 0; i < 5; ++i); } |
11 undefined | 11 undefined |
12 { a: 4 }),({ b: 7 } | 12 { a: 4 }),({ b: 7 } |
13 VM:1 Uncaught SyntaxError: Unexpected token ) | 13 VM:1 Uncaught SyntaxError: Unexpected token ) |
14 { let a = 4; a; } | 14 { let a = 4; a; } |
15 4 | 15 4 |
16 { let a = 4; }; { let b = 5; }; | 16 { let a = 4; }; { let b = 5; }; |
17 undefined | 17 undefined |
18 { a: 4 } + { a: 5 } | 18 { a: 4 } + { a: 5 } |
19 "[object Object][object Object]" | 19 "[object Object][object Object]" |
20 { a: 4 }, { a: 5 } | 20 { a: 4 }, { a: 5 } |
21 Object {a: 5} | 21 Object {a: 5} |
22 var foo = 4; | 22 var foo = 4; |
23 undefined | 23 undefined |
24 { a: foo++ } | 24 { a: foo++ } |
25 Object {a: 4} | 25 Object {a: 4} |
26 foo; | 26 foo; |
27 5 | 27 5 |
28 | 28 |
OLD | NEW |