diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/Object/fromEntries/prototype.js')
-rw-r--r-- | js/src/tests/test262/built-ins/Object/fromEntries/prototype.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/Object/fromEntries/prototype.js b/js/src/tests/test262/built-ins/Object/fromEntries/prototype.js new file mode 100644 index 0000000000..13d02c7193 --- /dev/null +++ b/js/src/tests/test262/built-ins/Object/fromEntries/prototype.js @@ -0,0 +1,13 @@ +// Copyright (C) 2018 Kevin Gibbons. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +description: Created objects inherit from Object.prototype. +esid: sec-object.fromentries +features: [Object.fromEntries] +---*/ + +var result = Object.fromEntries([]); +assert.sameValue(Object.getPrototypeOf(result), Object.prototype); + +reportCompare(0, 0); |