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

Unified Diff: test/mjsunit/regress/regress-crbug-513471.js

Issue 1856683002: Fix resuming generator marked for optimization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 | « src/runtime/runtime-generator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-513471.js
diff --git a/test/mjsunit/regress/regress-crbug-582703.js b/test/mjsunit/regress/regress-crbug-513471.js
similarity index 71%
copy from test/mjsunit/regress/regress-crbug-582703.js
copy to test/mjsunit/regress/regress-crbug-513471.js
index 792266f54cd9d124b2d2675100d3d1e8b82c4dd3..48c793e512315284ddf218f8847d9c357280fe95 100644
--- a/test/mjsunit/regress/regress-crbug-582703.js
+++ b/test/mjsunit/regress/regress-crbug-513471.js
@@ -4,5 +4,7 @@
// Flags: --allow-natives-syntax
-%FunctionGetScript({});
-%FunctionGetSourceCode({});
+var g = (function*(){});
+var f = g();
+%OptimizeFunctionOnNextCall(g);
+f.next();
« no previous file with comments | « src/runtime/runtime-generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698