esnext.weak-map.upsert.js 398 B

1234567891011
  1. 'use strict';
  2. // TODO: remove from `core-js@4`
  3. var $ = require('../internals/export');
  4. var IS_PURE = require('../internals/is-pure');
  5. var $upsert = require('../internals/map-upsert');
  6. // `WeakMap.prototype.upsert` method (replaced by `WeakMap.prototype.emplace`)
  7. // https://github.com/tc39/proposal-upsert
  8. $({ target: 'WeakMap', proto: true, real: true, forced: IS_PURE }, {
  9. upsert: $upsert
  10. });