esnext.weak-set.of.js 403 B

12345678910
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var WeakSetHelpers = require('../internals/weak-set-helpers');
  4. var createCollectionOf = require('../internals/collection-of');
  5. // `WeakSet.of` method
  6. // https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of
  7. $({ target: 'WeakSet', stat: true, forced: true }, {
  8. of: createCollectionOf(WeakSetHelpers.WeakSet, WeakSetHelpers.add, false)
  9. });