main
Last change
on this file since 65b6638 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
341 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var tryToString = require('../internals/try-to-string');
|
---|
3 |
|
---|
4 | var $TypeError = TypeError;
|
---|
5 |
|
---|
6 | // Perform ? RequireInternalSlot(M, [[WeakSetData]])
|
---|
7 | module.exports = function (it) {
|
---|
8 | if (typeof it == 'object' && 'has' in it && 'add' in it && 'delete' in it) return it;
|
---|
9 | throw new $TypeError(tryToString(it) + ' is not a weakset');
|
---|
10 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.