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

Side by Side Diff: test/mjsunit/es6/iterator-close.js

Issue 2096933002: Remove all harmony runtime flags which shipped in M51 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « test/mjsunit/es6/instanceof.js ('k') | test/mjsunit/es6/legacy-subclassing.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --harmony-iterator-close
6
7 5
8 function* g() { yield 42; return 88 }; 6 function* g() { yield 42; return 88 };
9 7
10 8
11 // Return method is "undefined". 9 // Return method is "undefined".
12 { 10 {
13 g.prototype.return = null; 11 g.prototype.return = null;
14 12
15 13
16 assertEquals(undefined, (() => { 14 assertEquals(undefined, (() => {
(...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 })()); 1361 })());
1364 1362
1365 assertEquals(42, (() => { 1363 assertEquals(42, (() => {
1366 for (let x of g()) return 42; 1364 for (let x of g()) return 42;
1367 })()); 1365 })());
1368 1366
1369 assertThrowsEquals(() => { 1367 assertThrowsEquals(() => {
1370 for (let x of g()) throw 42; 1368 for (let x of g()) throw 42;
1371 }, 42); 1369 }, 42);
1372 } 1370 }
OLDNEW
« no previous file with comments | « test/mjsunit/es6/instanceof.js ('k') | test/mjsunit/es6/legacy-subclassing.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698