mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 23:44:27 +02:00
Curation: remove v8/test262/local-tests/test/built-ins/Map/ duplicates
A version of the same file, containing the same test with a more complete set of meta data, exists
This commit is contained in:
parent
705cb10d6a
commit
26fb624d4b
@ -1,27 +0,0 @@
|
|||||||
// Copyright (C) 2017 the V8 project authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
/*---
|
|
||||||
es6id: 23.1.1.1
|
|
||||||
description: >
|
|
||||||
The correct error is thrown `Map.prototype.set` throws an error and
|
|
||||||
the IteratorClose throws an error.
|
|
||||||
features: [Symbol.iterator]
|
|
||||||
---*/
|
|
||||||
|
|
||||||
var count = 0;
|
|
||||||
var iterable = {};
|
|
||||||
iterable[Symbol.iterator] = function() {
|
|
||||||
return {
|
|
||||||
next: function() {
|
|
||||||
return { value: [], done: false };
|
|
||||||
},
|
|
||||||
return: function() {
|
|
||||||
throw new TypeError('ignore');
|
|
||||||
}
|
|
||||||
};
|
|
||||||
};
|
|
||||||
Map.prototype.set = function() { throw new Test262Error(); }
|
|
||||||
|
|
||||||
assert.throws(Test262Error, function() {
|
|
||||||
new Map(iterable);
|
|
||||||
});
|
|
Loading…
x
Reference in New Issue
Block a user