Skip to content
Snippets Groups Projects
Commit 66eaf57f authored by Amal Hussein's avatar Amal Hussein Committed by Leo Balter
Browse files

added coverage for built-in Map spec to ensure that a TypeError is thrown when...

added coverage for built-in Map spec to ensure that a TypeError is thrown when Symbol.iterator is undefined (#1444)

parent 2fb8eca6
Branches
No related tags found
No related merge requests found
// Copyright (C) 2018 Amal Hussein. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-map-objects
description: >
Throws a TypeError if the iterator of the iterable is undefined.
info: |
Map ( [ iterable ] )
...
9. Let iteratorRecord be ? GetIterator(iterable).
features: [Symbol.iterator]
---*/
var iterable = { [Symbol.iterator]: undefined };
assert.throws(TypeError,
function () {
new Map(iterable);
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment