modules-import-5.mjs 403 Bytes
Newer Older
1 2 3 4 5 6 7
// Copyright 2017 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Flags: --allow-natives-syntax --harmony-dynamic-import

var life;
8
let x = 'modules-skip-1.mjs';
9
import(x).then(namespace => life = namespace.life());
10
x = 'modules-skip-2.mjs';
11

12
%PerformMicrotaskCheckpoint();
13
assertEquals(42, life);