Fix WeakMap/WeakSet typo

The test tries to test against WeakSet, but used WeakMap instead.
This commit is contained in:
Timothy Gu 2019-06-30 02:00:33 -07:00 committed by Rick Waldron
parent b1b4177796
commit 9dfb9e14e0
1 changed files with 2 additions and 2 deletions

View File

@ -18,10 +18,10 @@ features: [WeakSet]
---*/ ---*/
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
Set.prototype.values.call(new WeakMap()); Set.prototype.values.call(new WeakSet());
}); });
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
var s = new Set(); var s = new Set();
s.values.call(new WeakMap()); s.values.call(new WeakSet());
}); });