Chromium Code Reviews| Index: test/mjsunit/harmony/destructuring.js |
| diff --git a/test/mjsunit/harmony/destructuring.js b/test/mjsunit/harmony/destructuring.js |
| index 92cd7762604f17f0012efe793b4530251dd43b40..cdce636f99dffc378d729d9870936004a13c7e42 100644 |
| --- a/test/mjsunit/harmony/destructuring.js |
| +++ b/test/mjsunit/harmony/destructuring.js |
| @@ -1104,6 +1104,10 @@ |
| assertEquals(1, result); |
| })(); |
| -(function TestDestructuringArrayWithoutInitializer() { |
| - assertThrows('var [foo]', TypeError); |
| +(function TestDeclDestructuringArrayWithoutInitializer() { |
|
adamk
2015/11/03 20:13:53
Could you make this and the below into message tes
|
| + assertThrows('var [foo]', SyntaxError); |
| +})(); |
| + |
| +(function TestDeclDestructuringObjectWithoutInitializer() { |
| + assertThrows('var {foo}', SyntaxError); |
| })(); |