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

Side by Side Diff: test/mjsunit/es6/generators-states.js

Issue 2176143002: Remove the --ignition-generators flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/generators-runtime.js ('k') | test/mjsunit/harmony/debug-async-liveedit.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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: --ignition-generators
6
7 // Test generator states. 5 // Test generator states.
8 6
9 function Foo() {} 7 function Foo() {}
10 function Bar() {} 8 function Bar() {}
11 9
12 function assertIteratorResult(value, done, result) { 10 function assertIteratorResult(value, done, result) {
13 assertEquals({ value: value, done: done}, result); 11 assertEquals({ value: value, done: done}, result);
14 } 12 }
15 13
16 function assertIteratorIsClosed(iter) { 14 function assertIteratorIsClosed(iter) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 85 }
88 { 86 {
89 let x; 87 let x;
90 let g = function*() { 88 let g = function*() {
91 try {return 42} finally {try {x.throw(666)} catch(e) {}} 89 try {return 42} finally {try {x.throw(666)} catch(e) {}}
92 }; 90 };
93 91
94 x = g(); 92 x = g();
95 assertEquals({value: 42, done: true}, x.next()); 93 assertEquals({value: 42, done: true}, x.next());
96 } 94 }
OLDNEW
« no previous file with comments | « test/mjsunit/es6/generators-runtime.js ('k') | test/mjsunit/harmony/debug-async-liveedit.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698