es.weak-set.constructor.js 364 B

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