2018-08-11 06:49:01 +02:00
|
|
|
// 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']]);
|
2018-08-13 18:44:09 +02:00
|
|
|
verifyProperty(result, "key", {
|
|
|
|
enumerable: true,
|
|
|
|
writable: true,
|
|
|
|
configurable: true,
|
|
|
|
});
|