mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-03 21:24:30 +01:00 
			
		
		
		
	mark namespace object toStringTag as non-configurable (#811)
This commit is contained in:
		
							parent
							
								
									b5edd1256c
								
							
						
					
					
						commit
						a73221eb8f
					
				@ -10,7 +10,7 @@ info: >
 | 
				
			|||||||
    "Module".
 | 
					    "Module".
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    This property has the attributes { [[Writable]]: false, [[Enumerable]]:
 | 
					    This property has the attributes { [[Writable]]: false, [[Enumerable]]:
 | 
				
			||||||
    false, [[Configurable]]: true }.
 | 
					    false, [[Configurable]]: false }.
 | 
				
			||||||
flags: [module]
 | 
					flags: [module]
 | 
				
			||||||
features: [Symbol.toStringTag]
 | 
					features: [Symbol.toStringTag]
 | 
				
			||||||
---*/
 | 
					---*/
 | 
				
			||||||
@ -26,4 +26,4 @@ var desc = Object.getOwnPropertyDescriptor(ns, Symbol.toStringTag);
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
assert.sameValue(desc.enumerable, false, 'reports as non-enumerable');
 | 
					assert.sameValue(desc.enumerable, false, 'reports as non-enumerable');
 | 
				
			||||||
assert.sameValue(desc.writable, false, 'reports as non-writable');
 | 
					assert.sameValue(desc.writable, false, 'reports as non-writable');
 | 
				
			||||||
assert.sameValue(desc.configurable, true, 'reports as configurable');
 | 
					assert.sameValue(desc.configurable, false, 'reports as non-configurable');
 | 
				
			||||||
 | 
				
			|||||||
@ -19,7 +19,7 @@ desc = Object.getOwnPropertyDescriptor(ns, Symbol.toStringTag);
 | 
				
			|||||||
assert.sameValue(desc.value, ns[Symbol.toStringTag]);
 | 
					assert.sameValue(desc.value, ns[Symbol.toStringTag]);
 | 
				
			||||||
assert.sameValue(desc.enumerable, false, 'Symbol.toStringTag enumerable');
 | 
					assert.sameValue(desc.enumerable, false, 'Symbol.toStringTag enumerable');
 | 
				
			||||||
assert.sameValue(desc.writable, false, 'Symbol.toStringTag writable');
 | 
					assert.sameValue(desc.writable, false, 'Symbol.toStringTag writable');
 | 
				
			||||||
assert.sameValue(desc.configurable, true, 'Symbol.toStringTag configurable');
 | 
					assert.sameValue(desc.configurable, false, 'Symbol.toStringTag configurable');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
assert.sameValue(Object.prototype.hasOwnProperty.call(ns, notFound), false);
 | 
					assert.sameValue(Object.prototype.hasOwnProperty.call(ns, notFound), false);
 | 
				
			||||||
desc = Object.getOwnPropertyDescriptor(ns, notFound);
 | 
					desc = Object.getOwnPropertyDescriptor(ns, notFound);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user