diff --git a/ext/crypto/00_crypto.js b/ext/crypto/00_crypto.js index 41c85bdd123283..9134f486bfb240 100644 --- a/ext/crypto/00_crypto.js +++ b/ext/crypto/00_crypto.js @@ -1983,7 +1983,7 @@ WeakMapPrototypeSet(KEY_STORE, handle, privateKeyData); const publicHandle = {}; - WeakMapPrototypeSet(KEY_STORE, handle, publicKeyData); + WeakMapPrototypeSet(KEY_STORE, publicHandle, publicKeyData); const algorithm = { name: algorithmName, @@ -2031,7 +2031,7 @@ WeakMapPrototypeSet(KEY_STORE, handle, privateKeyData); const publicHandle = {}; - WeakMapPrototypeSet(KEY_STORE, handle, publicKeyData); + WeakMapPrototypeSet(KEY_STORE, publicHandle, publicKeyData); const algorithm = { name: algorithmName,