Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: test/mjsunit/harmony/destructuring.js

Issue 1695393003: [es6] Implement for-of iterator finalization (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove some debug left-overs Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
}());

Powered by Google App Engine
This is Rietveld 408576698