mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-03 21:24:30 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			779 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			779 B
		
	
	
	
		
			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-objects
 | 
						|
description: Temporal has own property names
 | 
						|
features: [Temporal]
 | 
						|
---*/
 | 
						|
 | 
						|
const keys = Object.getOwnPropertyNames(Temporal);
 | 
						|
 | 
						|
assert(keys.indexOf("Instant") > -1, "Instant");
 | 
						|
assert(keys.indexOf("PlainDate") > -1, "PlainDate");
 | 
						|
assert(keys.indexOf("PlainTime") > -1, "PlainTime");
 | 
						|
assert(keys.indexOf("PlainDateTime") > -1, "PlainDateTime");
 | 
						|
assert(keys.indexOf("ZonedDateTime") > -1, "ZonedDateTime");
 | 
						|
assert(keys.indexOf("PlainYearMonth") > -1, "PlainYearMonth");
 | 
						|
assert(keys.indexOf("PlainMonthDay") > -1, "PlainMonthDay");
 | 
						|
assert(keys.indexOf("Duration") > -1, "Duration");
 | 
						|
assert(keys.indexOf("Now") > -1, "Now");
 |