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

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

Issue 2049663002: Run more tests with --ignition-generators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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
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
5 // Test generator states. 7 // Test generator states.
6 8
7 function Foo() {} 9 function Foo() {}
8 function Bar() {} 10 function Bar() {}
9 11
10 function assertIteratorResult(value, done, result) { 12 function assertIteratorResult(value, done, result) {
11 assertEquals({ value: value, done: done}, result); 13 assertEquals({ value: value, done: done}, result);
12 } 14 }
13 15
14 function assertIteratorIsClosed(iter) { 16 function assertIteratorIsClosed(iter) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 87 }
86 { 88 {
87 let x; 89 let x;
88 let g = function*() { 90 let g = function*() {
89 try {return 42} finally {try {x.throw(666)} catch(e) {}} 91 try {return 42} finally {try {x.throw(666)} catch(e) {}}
90 }; 92 };
91 93
92 x = g(); 94 x = g();
93 assertEquals({value: 42, done: true}, x.next()); 95 assertEquals({value: 42, done: true}, x.next());
94 } 96 }
OLDNEW
« test/mjsunit/debug-generator-break.js ('K') | « test/mjsunit/es6/generators-runtime.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698