modules-import-17.mjs 375 Bytes
Newer Older
1 2 3 4 5 6 7
// Copyright 2018 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-namespace-exports

var ns;
8
import('modules-skip-13.mjs').then(x => ns = x);
9
%PerformMicrotaskCheckpoint();
10 11
assertEquals(42, ns.default);
assertEquals(ns, ns.self);