summaryrefslogtreecommitdiff
path: root/ext/crypto/00_crypto.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/crypto/00_crypto.js')
-rw-r--r--ext/crypto/00_crypto.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/crypto/00_crypto.js b/ext/crypto/00_crypto.js
index 41c85bdd1..9134f486b 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,