GoScrobble/web/node_modules/core-js/modules/esnext.weak-map.upsert.js

12 lines
398 B
JavaScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
'use strict';
// TODO: remove from `core-js@4`
var $ = require('../internals/export');
var IS_PURE = require('../internals/is-pure');
var $upsert = require('../internals/map-upsert');
// `WeakMap.prototype.upsert` method (replaced by `WeakMap.prototype.emplace`)
// https://github.com/tc39/proposal-upsert
$({ target: 'WeakMap', proto: true, real: true, forced: IS_PURE }, {
upsert: $upsert
});