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

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

Issue 2362083002: [modules] Do basic linking. (Closed)
Patch Set: Rename files because the presubmit tool is so fragile. 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
« no previous file with comments | « test/mjsunit/modules-imports1.js ('k') | test/mjsunit/modules-imports3.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 let get_x = () => x;
8
9 assertEquals(1, x);
10 assertEquals(1, (() => x)());
11 assertEquals(1, eval('x'));
12 assertEquals(1, get_x());
13
14 assertThrows(() => x = 666, TypeError);
15 assertEquals(1, x);
16 assertEquals(1, (() => x)());
17 assertEquals(1, eval('x'));
18 assertEquals(1, get_x());
19
20 set_x("foo");
21 assertEquals("foo", x);
22 assertEquals("foo", (() => x)());
23 assertEquals("foo", eval('x'));
24 assertEquals("foo", get_x());
25
26 import {a as x, set_a as set_x} from "modules-skip-1.js"
OLDNEW
« no previous file with comments | « test/mjsunit/modules-imports1.js ('k') | test/mjsunit/modules-imports3.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698