diff options
Diffstat (limited to 'node_modules/core-js/library/modules/es6.weak-set.js')
-rw-r--r-- | node_modules/core-js/library/modules/es6.weak-set.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/node_modules/core-js/library/modules/es6.weak-set.js b/node_modules/core-js/library/modules/es6.weak-set.js new file mode 100644 index 000000000..77d01b6ba --- /dev/null +++ b/node_modules/core-js/library/modules/es6.weak-set.js @@ -0,0 +1,12 @@ +'use strict'; +var weak = require('./_collection-weak'); + +// 23.4 WeakSet Objects +require('./_collection')('WeakSet', function(get){ + return function WeakSet(){ return get(this, arguments.length > 0 ? arguments[0] : undefined); }; +}, { + // 23.4.3.1 WeakSet.prototype.add(value) + add: function add(value){ + return weak.def(this, value, true); + } +}, weak, false, true);
\ No newline at end of file |