mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 19:53:50 +01:00 
			
		
		
		
	Tests doesn't use async functionality and don't call $DONE, so remove "async" flag: - src/params/error/async-gen-named-func-expr.template - test/language/expressions/async-generator/params-named-dflt-abrupt.js - test/language/expressions/async-generator/params-named-dflt-ref-later.js - test/language/expressions/async-generator/params-named-dflt-ref-self.js Intl.PluralRules.prototype is no longer a Intl.Prototype instance: - test/intl402/PluralRules/prototype/prototype.js Intl.PluralRules throws an error when called as a function: - test/intl402/PluralRules/undefined-newtarget-throws.js Module namespace objects call OrdinaryDelete for symbol properties: - test/language/module-code/namespace/internals/delete-non-exported.js Async generators no longer retrieves "done" property twice: - src/async-generators/yield-star-async-next.case - src/async-generators/yield-star-async-return.case - src/async-generators/yield-star-async-throw.case Minor units of CLF is 4, so we need to test with maximumFractionDigits=3 to get an error: - test/intl402/NumberFormat/dft-currency-mnfd-range-check-mxfd.js DateTimeFormat.prototype.formatToParts length property was changed from 0 to 1: - test/intl402/DateTimeFormat/prototype/formatToParts/length.js minimumSignificantDigits and maximumSignificantDigits properties are only retrieved once: - test/intl402/NumberFormat/11.1.1_32.js
		
			
				
	
	
		
			37 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			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-delete-p
 | |
| description: >
 | |
|     [[Delete]] behavior for a key that does not describe an exported binding
 | |
| info: |
 | |
|     [...]
 | |
|     2. If Type(P) is Symbol, then
 | |
|         a. Return ? OrdinaryDelete(O, P).
 | |
|     3. Let exports be O.[[Exports]].
 | |
|     4. If P is an element of exports, return false.
 | |
|     5. Return true.
 | |
| flags: [module]
 | |
| features: [Reflect, Symbol, Symbol.toStringTag]
 | |
| ---*/
 | |
| 
 | |
| import * as ns from './delete-non-exported.js';
 | |
| var sym = Symbol('test262');
 | |
| 
 | |
| assert(delete ns.undef, 'delete: undef');
 | |
| assert(Reflect.deleteProperty(ns, 'undef'), 'Reflect.deleteProperty: undef');
 | |
| 
 | |
| assert(delete ns.default, 'delete: default');
 | |
| assert(
 | |
|   Reflect.deleteProperty(ns, 'default'), 'Reflect.deleteProperty: default'
 | |
| );
 | |
| 
 | |
| assert.throws(TypeError, function() { delete ns[Symbol.toStringTag]; }, 'delete: Symbol.toStringTag');
 | |
| assert.sameValue(
 | |
|   Reflect.deleteProperty(ns, Symbol.toStringTag), false,
 | |
|   'Reflect.deleteProperty: Symbol.toStringTag'
 | |
| );
 | |
| 
 | |
| assert(delete ns[sym], 'delete: symbol');
 | |
| assert(Reflect.deleteProperty(ns, sym), 'Reflect.deleteProperty: symbol');
 |