mirror of
https://github.com/tc39/test262.git
synced 2025-07-28 16:34:27 +02:00
Remove duplicate WeakSet test
This test is duplicated by WeakSet/prototype/add/value-not-object-throw.js Originally taken from Rick's draft commit for symbols-as-weakmap-keys tests.
This commit is contained in:
parent
01f73e96ca
commit
145c440069
@ -1,14 +0,0 @@
|
|||||||
// Copyright (C) 2013 the V8 project authors. All rights reserved.
|
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
|
||||||
/*---
|
|
||||||
esid: sec-weakset.prototype.add
|
|
||||||
description: >
|
|
||||||
Symbol may not be used as a WeakSet entry
|
|
||||||
features: [Symbol, WeakSet]
|
|
||||||
---*/
|
|
||||||
var weakset = new WeakSet();
|
|
||||||
var sym = Symbol();
|
|
||||||
|
|
||||||
assert.throws(TypeError, function() {
|
|
||||||
weakset.add(sym);
|
|
||||||
});
|
|
Loading…
x
Reference in New Issue
Block a user