Two more simple tests

This commit is contained in:
Kevin Gibbons 2018-08-10 23:16:46 -07:00 committed by Rick Waldron
parent 7f694d4718
commit 60b9467630
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
// 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);

View File

@ -0,0 +1,11 @@
// 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);