Skip to content

Commit 1a8a0f0

Browse files
committed
fixup! lib,crypto: migrate algorithm modules to native CryptoKey
1 parent db2a2fb commit 1a8a0f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/internal/crypto/webcrypto.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ async function exportKeyRawSecret(key, format) {
569569
async function exportKeyJWK(key) {
570570
const algorithm = getCryptoKeyAlgorithm(key);
571571
const parameters = {
572-
key_ops: getCryptoKeyUsages(key),
572+
key_ops: ArrayPrototypeSlice(getCryptoKeyUsages(key), 0),
573573
ext: getCryptoKeyExtractable(key),
574574
};
575575
switch (algorithm.name) {

0 commit comments

Comments
 (0)