Index: test/mjsunit/harmony/destructuring.js |
diff --git a/test/mjsunit/harmony/destructuring.js b/test/mjsunit/harmony/destructuring.js |
index 50f27857ec04ce302dacb2ab63139ac27167f61c..b6eb6eab09e8152047fb07de83ab7141e7e4392d 100644 |
--- a/test/mjsunit/harmony/destructuring.js |
+++ b/test/mjsunit/harmony/destructuring.js |
@@ -1061,8 +1061,8 @@ |
(function TestForInOfTDZ() { |
- assertThrows("'use strict'; let x = {}; for (let [x, y] of {x});", ReferenceError); |
- assertThrows("'use strict'; let x = {}; for (let [y, x] of {x});", ReferenceError); |
+ assertThrows("'use strict'; let x = {}; for (let [x, y] of [x]);", ReferenceError); |
+ assertThrows("'use strict'; let x = {}; for (let [y, x] of [x]);", ReferenceError); |
assertThrows("'use strict'; let x = {}; for (let [x, y] in {x});", ReferenceError); |
assertThrows("'use strict'; let x = {}; for (let [y, x] in {x});", ReferenceError); |
}()); |