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

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

Issue 2362083002: [modules] Do basic linking. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4 //
5 // MODULE
6
7 import {b} from "modules-SKIP-2.js";
8 import {a, set_a} from "modules-SKIP-1.js";
9 import c from "modules-SKIP-2.js";
10
11 assertEquals(1, a);
12 assertEquals(1, b);
13 assertEquals(42, c);
14
15 set_a(2);
16 assertEquals(2, a);
17 assertEquals(2, b);
18 assertEquals(42, c);
19
20 assertThrows(() => a = 3, TypeError);
21 assertThrows(() => b = 3, TypeError);
22 assertThrows(() => c = 3, TypeError);
23
24 assertEquals(2, a);
25 assertEquals(2, b);
26 assertEquals(42, c);
OLDNEW
« test/mjsunit/modules-FAIL-4.js ('K') | « test/mjsunit/modules-imports3.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698