Index: test/mjsunit/harmony/destructuring.js |
diff --git a/test/mjsunit/harmony/destructuring.js b/test/mjsunit/harmony/destructuring.js |
index 50f27857ec04ce302dacb2ab63139ac27167f61c..e5cedd2ae37d291a62a054cca9a40b8f123fd342 100644 |
--- a/test/mjsunit/harmony/destructuring.js |
+++ b/test/mjsunit/harmony/destructuring.js |
@@ -1061,10 +1061,10 @@ |
(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] in {x});", ReferenceError); |
- assertThrows("'use strict'; let x = {}; for (let [y, x] in {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); |
Dan Ehrenberg
2016/02/16 21:18:30
Why delete the old tests? I also don't understand
rossberg
2016/02/17 12:54:45
Just a tweak. The old version didn't actually make
|
}()); |