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

Unified Diff: test/mjsunit/regress/regress-618657.js

Issue 2056283002: [generators] Improve a test. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-618657.js
diff --git a/test/mjsunit/regress/regress-618657.js b/test/mjsunit/regress/regress-618657.js
index 7bf84694301648bb492a499a3a11fa854b9c22b5..2882cff808ccae177c892572fdb8c67ca525c364 100644
--- a/test/mjsunit/regress/regress-618657.js
+++ b/test/mjsunit/regress/regress-618657.js
@@ -5,6 +5,10 @@
// Flags: --ignition --ignition-generators --ignition-filter=-foo
function* foo() { yield 42 }
-var g = foo();
+function* goo() { yield 42 }
+var f = foo();
+var g = goo();
+assertEquals(42, f.next().value);
assertEquals(42, g.next().value);
+assertEquals(true, f.next().done);
assertEquals(true, g.next().done);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698