summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Object/fromEntries/prototype.js
blob: 13d02c7193e2649c6e10acaa46db7467a7c1901c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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);