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; 8var msg; 9import('modules-skip-1.mjs').then(namespace => life = namespace.life()); 10import('modules-skip-2.mjs').catch(err => msg = err.message); 11 12assertEquals(undefined, life); 13assertEquals(undefined, msg); 14 15%PerformMicrotaskCheckpoint(); 16 17assertEquals(42, life); 18assertEquals('42 is not the answer', msg); 19