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

Unified Diff: test/mjsunit/modules-init3.js

Issue 2438653003: [modules] Fix bugs in assignments to exported variables. (Closed)
Patch Set: Rebase. Created 4 years, 2 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/interpreter/bytecode-generator.cc ('k') | test/mjsunit/modules-skip-init3.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/modules-init3.js
diff --git a/test/mjsunit/modules-init3.js b/test/mjsunit/modules-init3.js
index 36ff1e8ffac6d107ffd5df3c68201d45bcf02cc8..e8b46106f7e9cea0282bfbeff2ea9e0a9f637e1a 100644
--- a/test/mjsunit/modules-init3.js
+++ b/test/mjsunit/modules-init3.js
@@ -11,6 +11,11 @@ assertThrows(() => x, ReferenceError);
assertThrows(() => y, ReferenceError);
assertThrows(() => z, ReferenceError);
+assertEquals(23, w = 23);
+assertThrows(() => x = 666, ReferenceError);
+assertThrows(() => y = 666, ReferenceError);
+assertThrows(() => z = 666, TypeError);
+
export function* v() { return 40 }
export var w = 41;
export let x = 42;
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | test/mjsunit/modules-skip-init3.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698