diff --git a/packages/core-js/modules/esnext.weak-map.get-or-insert-computed.js b/packages/core-js/modules/esnext.weak-map.get-or-insert-computed.js index e78b719108ef..37f389ffe5b1 100644 --- a/packages/core-js/modules/esnext.weak-map.get-or-insert-computed.js +++ b/packages/core-js/modules/esnext.weak-map.get-or-insert-computed.js @@ -15,6 +15,7 @@ $({ target: 'WeakMap', proto: true, real: true, forced: true }, { aWeakMap(this); aCallable(callbackfn); if (has(this, key)) return get(this, key); + set(this, key); // key validation var value = callbackfn(key); set(this, key, value); return value;