mirror of
				https://github.com/tc39/test262.git
				synced 2025-11-04 05:33:50 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			469 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			469 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Copyright (C) 2018 Kevin Gibbons. All rights reserved.
 | 
						|
// This code is governed by the BSD license found in the LICENSE file.
 | 
						|
 | 
						|
/*---
 | 
						|
description: Creates data properties which are enumerable, writable, and configurable.
 | 
						|
esid: sec-object.fromentries
 | 
						|
includes: [propertyHelper.js]
 | 
						|
features: [Object.fromEntries]
 | 
						|
---*/
 | 
						|
 | 
						|
var result = Object.fromEntries([['key', 'value']]);
 | 
						|
verifyProperty(result, "key", {
 | 
						|
  enumerable: true,
 | 
						|
  writable: true,
 | 
						|
  configurable: true,
 | 
						|
});
 |