diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/tests/test262/built-ins/Object/fromEntries/simple-properties.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Object/fromEntries/simple-properties.js b/js/src/tests/test262/built-ins/Object/fromEntries/simple-properties.js new file mode 100644 index 0000000000..431556a966 --- /dev/null +++ b/js/src/tests/test262/built-ins/Object/fromEntries/simple-properties.js @@ -0,0 +1,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); |