asd/asd-wx/node_modules/core-js/modules/esnext.weak-map.upsert.js
愉快的大福 340a467ba1 init
2024-11-21 11:32:11 +08:00

11 lines
346 B
JavaScript

'use strict';
// TODO: remove from `core-js@4`
var $ = require('../internals/export');
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: true }, {
upsert: upsert
});