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 7var life; 8let x = 'modules-skip-1.mjs'; 9import(x).then(namespace => life = namespace.life()); 10x = 'modules-skip-2.mjs'; 11 12%PerformMicrotaskCheckpoint(); 13assertEquals(42, life); 14