Debian Codegraph @

js/src/tests/test262/language/module-code/instn-same-global.js

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