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

Side by Side Diff: test/mjsunit/harmony/modules-import-14.js

Issue 2703563002: [ESNext] Implement DynamicImportCall (Closed)
Patch Set: rebase Created 3 years, 8 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/harmony/modules-import-13.js ('k') | test/mjsunit/harmony/modules-import-15.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 2017 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 // Flags: --allow-natives-syntax --harmony-dynamic-import
6
7 var ran = false;
8
9 async function test() {
10 try {
11 let x = await import('modules-skip-1.js');
12 // modules-skip-5.js statically imports modules-skip-1.js
13 let y = await import('modules-skip-5.js');
14 assertSame(x, y.static_life);
15
16 let z = await import('modules-skip-1.js');
17 assertSame(x, z);
18 ran = true;
19 } catch(e) {
20 %AbortJS('failure: '+ e.message);
21 }
22 }
23
24 test();
25 %RunMicrotasks();
26 assertTrue(ran);
OLDNEW
« no previous file with comments | « test/mjsunit/harmony/modules-import-13.js ('k') | test/mjsunit/harmony/modules-import-15.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698