test262/test/built-ins/Object/fromEntries/empty-iterable.js

12 lines
351 B
JavaScript
Raw Normal View History

2018-08-11 08:16:46 +02:00
// Copyright (C) 2018 Kevin Gibbons. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
description: When given an empty list, makes an empty object.
esid: sec-object.fromentries
features: [Object.fromEntries]
---*/
var result = Object.fromEntries([]);
assert.sameValue(Object.keys(result).length, 0);