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

Unified Diff: test/mjsunit/modules-skip-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 | « test/mjsunit/modules-init3.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/modules-skip-init3.js
diff --git a/test/mjsunit/modules-skip-init3.js b/test/mjsunit/modules-skip-init3.js
index eac1ae172b1950c9d632ab6e15199afc273fa49a..589b2cfb16c588f295b050af1214fa987bfbf86f 100644
--- a/test/mjsunit/modules-skip-init3.js
+++ b/test/mjsunit/modules-skip-init3.js
@@ -10,6 +10,12 @@ assertThrows(() => x, ReferenceError);
assertThrows(() => y, ReferenceError);
assertThrows(() => z, ReferenceError);
+assertThrows(() => v = 666, TypeError);
+assertThrows(() => w = 666, TypeError);
+assertThrows(() => x = 666, TypeError);
+assertThrows(() => y = 666, TypeError);
+assertThrows(() => z = 666, TypeError);
+
export function check() {
assertEquals({value: 40, done: true}, v().next());
assertEquals(41, w);
« no previous file with comments | « test/mjsunit/modules-init3.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698