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:
Rick Waldron 2018-10-19 10:26:34 -04:00
parent 705cb10d6a
commit 26fb624d4b
1 changed files with 0 additions and 27 deletions

View File

@ -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);
});