simple-properties.js (491B)
1 // Copyright (C) 2018 Kevin Gibbons. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 description: Creates data properties which are enumerable, writable, and configurable. 6 esid: sec-object.fromentries 7 includes: [propertyHelper.js] 8 features: [Object.fromEntries] 9 ---*/ 10 11 var result = Object.fromEntries([['key', 'value']]); 12 verifyProperty(result, "key", { 13 enumerable: true, 14 writable: true, 15 configurable: true, 16 }); 17 18 reportCompare(0, 0);