Skip to content
Snippets Groups Projects
Commit 60b94676 authored by Kevin Gibbons's avatar Kevin Gibbons Committed by Rick Waldron
Browse files

Two more simple tests

parent 7f694d47
No related branches found
No related tags found
No related merge requests found
// 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);
// 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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment