2017-06-06 10:28:14 +02:00
|
|
|
// 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.
|
|
|
|
|
2022-01-29 08:33:07 +01:00
|
|
|
// Flags: --allow-natives-syntax
|
2017-06-06 10:28:14 +02:00
|
|
|
|
|
|
|
var ran = false;
|
|
|
|
|
|
|
|
async function test() {
|
|
|
|
try {
|
|
|
|
let [namespace1, namespace2] = await Promise.all([
|
2019-08-16 11:32:46 +02:00
|
|
|
import('modules-skip-1.mjs'),
|
|
|
|
import('modules-skip-3.mjs')
|
2017-06-06 10:28:14 +02:00
|
|
|
]);
|
|
|
|
|
|
|
|
let life = namespace1.life();
|
|
|
|
let stringlife = namespace2.stringlife;
|
|
|
|
assertEquals(42, life);
|
|
|
|
assertEquals("42", stringlife);
|
|
|
|
ran = true;
|
|
|
|
} catch(e) {
|
|
|
|
%AbortJS("failure: " + e);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
test();
|
|
|
|
|
2019-03-12 09:01:49 +01:00
|
|
|
%PerformMicrotaskCheckpoint();
|
2017-06-06 10:28:14 +02:00
|
|
|
assertTrue(ran);
|