| Index: test/mjsunit/harmony/destructuring.js
|
| diff --git a/test/mjsunit/harmony/destructuring.js b/test/mjsunit/harmony/destructuring.js
|
| index 904058618ad23cb5520bba639a8fb14615b2c5ca..92cd7762604f17f0012efe793b4530251dd43b40 100644
|
| --- a/test/mjsunit/harmony/destructuring.js
|
| +++ b/test/mjsunit/harmony/destructuring.js
|
| @@ -1103,3 +1103,7 @@
|
| for (const {foo} of [{foo: 1}]) { result = foo; }
|
| assertEquals(1, result);
|
| })();
|
| +
|
| +(function TestDestructuringArrayWithoutInitializer() {
|
| + assertThrows('var [foo]', TypeError);
|
| +})();
|
|
|