esnext.weak-map.emplace.js 328 B

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