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

Unified Diff: test/mjsunit/modules-error-trace.js

Issue 2375793002: Reland: [modules] Properly initialize declared variables. (Closed)
Patch Set: Update CompilerHints. Created 4 years, 3 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 | « test/cctest/interpreter/bytecode_expectations/CallRuntime.golden ('k') | test/mjsunit/modules-init1.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/modules-error-trace.js
diff --git a/test/mjsunit/modules-circular-valid.js b/test/mjsunit/modules-error-trace.js
similarity index 52%
copy from test/mjsunit/modules-circular-valid.js
copy to test/mjsunit/modules-error-trace.js
index e381eefdbc8242c0a6acd38fe7ac05e1d45d6130..bbf83c510ddb24f9802a935d7d92476541ce0a8f 100644
--- a/test/mjsunit/modules-circular-valid.js
+++ b/test/mjsunit/modules-error-trace.js
@@ -4,4 +4,6 @@
//
// MODULE
-export {a as b} from "modules-skip-circular-valid.js";
+// Make sure the generator resume function doesn't show up in the stack trace.
+const stack = (new Error).stack;
+assertEquals(2, stack.split(/\r\n|\r|\n/).length);
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/CallRuntime.golden ('k') | test/mjsunit/modules-init1.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698