mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-03 21:24:30 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			542 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			542 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// 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);
 |