mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-30 19:24:12 +01:00 
			
		
		
		
	This copies over the tests that previously existed in the tc39/proposal-temporal repository. For context, see thread starting at: https://github.com/tc39/test262/issues/3002#issuecomment-926234480 In service of https://github.com/tc39/test262/issues/3002
		
			
				
	
	
		
			26 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // Copyright (C) 2021 Igalia, S.L. All rights reserved.
 | |
| // This code is governed by the BSD license found in the LICENSE file.
 | |
| 
 | |
| /*---
 | |
| esid: sec-temporal.plaintime
 | |
| description: Temporal.PlainTime.length is 0
 | |
| info: |
 | |
|     Every built-in function object, including constructors, has a "length" property whose value is
 | |
|     an integer. Unless otherwise specified, this value is equal to the largest number of named
 | |
|     arguments shown in the subclause headings for the function description. Optional parameters
 | |
|     (which are indicated with brackets: [ ]) or rest parameters (which are shown using the form
 | |
|     «...name») are not included in the default argument count.
 | |
| 
 | |
|     Unless otherwise specified, the "length" property of a built-in function object has the
 | |
|     attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
 | |
| includes: [propertyHelper.js]
 | |
| features: [Temporal]
 | |
| ---*/
 | |
| 
 | |
| verifyProperty(Temporal.PlainTime, "length", {
 | |
|   value: 0,
 | |
|   writable: false,
 | |
|   enumerable: false,
 | |
|   configurable: true,
 | |
| });
 |