mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			507 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			507 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Copyright 2018 the V8 project authors. All rights reserved.
 | 
						|
// Use of this source code is governed by a BSD-style license that can be
 | 
						|
// found in the LICENSE file.
 | 
						|
 | 
						|
// Test the Intl.DateTimeFormat.prototype.resolvedOptions will properly handle
 | 
						|
// 3. Let dtf be ? UnwrapDateTimeFormat(dtf).
 | 
						|
var x = Object.create(Intl.DateTimeFormat.prototype);
 | 
						|
x = Intl.DateTimeFormat.call(x, 'en');
 | 
						|
 | 
						|
var resolvedOptions = Intl.DateTimeFormat.prototype.resolvedOptions.call(x);
 | 
						|
assertEquals(resolvedOptions.locale, 'en')
 |