mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 03:34:08 +01:00 
			
		
		
		
	Assert correct behavior of the own properties of module namespace objects and the essential internal methods of module namespace exotic objects.
		
			
				
	
	
		
			24 lines
		
	
	
		
			874 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			874 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.
 | |
| /*---
 | |
| esid: sec-module-namespace-exotic-objects-get-p-receiver
 | |
| description: >
 | |
|     Behavior of the [[Get]] internal method with a string argument for
 | |
|     non-exported bindings
 | |
| info: |
 | |
|     [...]
 | |
|     3. Let exports be the value of O's [[Exports]] internal slot.
 | |
|     4. If P is not an element of exports, return undefined.
 | |
| flags: [module]
 | |
| ---*/
 | |
| 
 | |
| import * as ns from './get-str-not-found.js';
 | |
| var test262;
 | |
| export { test262 as anotherName };
 | |
| 
 | |
| assert.sameValue(ns.test262, undefined, 'key: test262');
 | |
| assert.sameValue(ns.toStringTag, undefined, 'key: toStringTag');
 | |
| assert.sameValue(ns.iterator, undefined, 'key: iterator');
 | |
| assert.sameValue(ns.__proto__, undefined, 'key: __proto__');
 | |
| assert.sameValue(ns.default, undefined, 'key: default');
 |