You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How often does it reproduce? Is there a required condition?
What is the expected behavior?
All webcrypto arguments that are ArrayBuffer can also be Int8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView.
What do you see instead?
#36012 use of ArrayBufferPrototypeSlice in lib/internal/crypto/aes.js broke this particular snippet, possibly other too.
TypeError: Method ArrayBuffer.prototype.slice called on incompatible receiver [object Uint8Array]
at Uint8Array.slice (<anonymous>)
at node:internal/per_context/primordials:23:32
at asyncAesGcmCipher (node:internal/crypto/aes:186:13)
at Object.aesCipher (node:internal/crypto/aes:209:28)
at cipherOrWrap (node:internal/crypto/webcrypto:625:10)
at SubtleCrypto.decrypt (node:internal/crypto/webcrypto:640:10)
at file:///Users/panva/repo/node/some.mjs:26:21
The text was updated successfully, but these errors were encountered:
#36012 broke webcrypto's use of
ArrayBufferView
(and the like) in at least AES decrypt operations.crypto.webcrypto
What steps will reproduce the bug?
This snippet works in v15.1.0, but fails in v15.2.0
// some.mjs
How often does it reproduce? Is there a required condition?
What is the expected behavior?
All webcrypto arguments that are
ArrayBuffer
can also beInt8Array | Int16Array | Int32Array | Uint8Array | Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | DataView
.What do you see instead?
#36012 use of
ArrayBufferPrototypeSlice
inlib/internal/crypto/aes.js
broke this particular snippet, possibly other too.The text was updated successfully, but these errors were encountered: