2017-04-11 09:33:11 +00: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.
|
|
|
|
|
2021-11-05 09:37:20 +00:00
|
|
|
// Flags: --allow-natives-syntax
|
2017-04-11 09:33:11 +00:00
|
|
|
|
|
|
|
var life;
|
2019-06-27 10:49:03 +00:00
|
|
|
import('modules-skip-6.mjs').then(namespace => life = namespace.life);
|
2017-04-11 09:33:11 +00:00
|
|
|
|
|
|
|
assertEquals(undefined, Object.life);
|
|
|
|
|
2018-12-04 06:12:49 +00:00
|
|
|
%PerformMicrotaskCheckpoint();
|
2017-04-11 09:33:11 +00:00
|
|
|
|
|
|
|
assertEquals(42, Object.life);
|
|
|
|
assertEquals("42", life);
|