| 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 Evaluating input as an expression. |
| 4 Object {a: 1, b: 2} | 5 Object {a: 1, b: 2} |
| 5 {a:1} | 6 {a:1} |
| 7 Evaluating input as an expression. |
| 6 Object {a: 1} | 8 Object {a: 1} |
| 7 {var a = 1; eval("{a :1, b:2 }");} | 9 {var a = 1; eval("{ a:1, b:2 }");} |
| 8 VM:1 Uncaught SyntaxError: Unexpected identifier(…) | 10 VM:1 Uncaught SyntaxError: Unexpected token :(…) |
| 9 { for (var i = 0; i < 5; ++i); } | 11 { for (var i = 0; i < 5; ++i); } |
| 10 VM:1 Uncaught SyntaxError: Unexpected token var(…) | 12 undefined |
| 13 { a: 4 }),({ b: 7 } |
| 14 VM:1 Uncaught SyntaxError: Unexpected token )(…) |
| 15 { let a = 4; a; } |
| 16 4 |
| 17 { let a = 4; }; { let b = 5; }; |
| 18 undefined |
| 19 { a: 4 } + { a: 5 } |
| 20 Evaluating input as an expression. |
| 21 "[object Object][object Object]" |
| 22 { a: 4 }, { a: 5 } |
| 23 Evaluating input as an expression. |
| 24 Object {a: 5} |
| 25 var foo = 4; |
| 26 undefined |
| 27 { a: foo++ } |
| 28 Evaluating input as an expression. |
| 29 Object {a: 4} |
| 30 foo; |
| 31 5 |
| 11 | 32 |
| OLD | NEW |