es.weak-set.js 371 B

123456789
  1. 'use strict';
  2. var collection = require('../internals/collection');
  3. var collectionWeak = require('../internals/collection-weak');
  4. // `WeakSet` constructor
  5. // https://tc39.github.io/ecma262/#sec-weakset-constructor
  6. collection('WeakSet', function (init) {
  7. return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); };
  8. }, collectionWeak);