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

Side by Side Diff: test/mjsunit/modules-imports6.js

Issue 2362153003: [modules] Support star exports. (Closed)
Patch Set: Address comments. 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 unified diff | Download patch
« no previous file with comments | « test/mjsunit/modules-fail-8.js ('k') | test/mjsunit/modules-imports7.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // MODULE 5 // MODULE
6 6
7 import {b, c} from "modules-skip-2.js"; 7 import {b, c} from "modules-skip-4.js";
8 import {a, set_a} from "modules-skip-1.js"; 8 import {a, set_a} from "modules-skip-4.js";
9 import x from "modules-skip-2.js";
10
11 assertEquals(42, x);
12 9
13 assertEquals(1, a); 10 assertEquals(1, a);
14 assertEquals(1, b); 11 assertEquals(1, b);
15 assertEquals(1, c); 12 assertEquals(1, c);
16 13
17 set_a(2); 14 set_a(2);
18 assertEquals(2, a); 15 assertEquals(2, a);
19 assertEquals(2, b); 16 assertEquals(2, b);
20 assertEquals(2, c); 17 assertEquals(2, c);
21 18
22 assertThrows(() => a = 3, TypeError); 19 assertThrows(() => a = 3, TypeError);
23 assertThrows(() => b = 3, TypeError); 20 assertThrows(() => b = 3, TypeError);
24 assertThrows(() => c = 3, TypeError); 21 assertThrows(() => c = 3, TypeError);
25 22
26 assertEquals(2, a); 23 assertEquals(2, a);
27 assertEquals(2, b); 24 assertEquals(2, b);
28 assertEquals(2, c); 25 assertEquals(2, c);
29
30 assertThrows(() => x = 43, TypeError);
31 assertEquals(42, x);
OLDNEW
« no previous file with comments | « test/mjsunit/modules-fail-8.js ('k') | test/mjsunit/modules-imports7.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698