Chromium Code Reviews| Index: test/mjsunit/regress/regress-799761.js |
| diff --git a/test/mjsunit/regress/regress-799761.js b/test/mjsunit/regress/regress-799761.js |
| index d3be1bdadf7c4d98988409905d8b87c5ececd1d6..a92f8bcb96b93a71c2937adfd4a646f8e6bf7672 100644 |
| --- a/test/mjsunit/regress/regress-799761.js |
| +++ b/test/mjsunit/regress/regress-799761.js |
| @@ -48,12 +48,12 @@ assertEquals(42, c); |
| // their value is undefined. |
| (function (sel) { |
| - if (sel == 0) |
| + if (sel == 0) { |
| with ({ x: 42 }) { |
| const x; |
| } |
| - else |
| - x = 3; |
| + } |
|
Rico
2011/12/08 10:24:37
else up and add {} for else
|
| + else x = 3; |
| x = 5; |
| assertTrue(typeof x == 'undefined'); |
| })(1); |
| @@ -77,7 +77,7 @@ assertEquals(42, c); |
| with ({ x: 42 }) { |
| const x = 7; |
| } |
| - x = 5 |
| + x = 5; |
| bar(); |
| })(); |