summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Object/fromEntries/simple-properties.js
blob: 431556a966ab8c27317cf05cf7727e029969edae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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,
});

reportCompare(0, 0);