blob: d7782ecdd2afb4fff4f0b5fee3436c0558f14395 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// |reftest| module
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: Modules share the same global `this` value
esid: sec-moduledeclarationinstantiation
info: |
[...]
6. Let env be NewModuleEnvironment(realm.[[GlobalEnv]]).
7. Set module.[[Environment]] to env.
[...]
includes: [fnGlobalObject.js]
flags: [module]
---*/
import './instn-same-global-set_FIXTURE.js';
var global = fnGlobalObject();
assert.sameValue(global.test262, 262);
reportCompare(0, 0);
|