mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
fix(ext/crypto): fix copying buffersource (#11714)
This commit is contained in:
parent
4010b84675
commit
2d578ea54a
1 changed files with 2 additions and 2 deletions
|
@ -142,8 +142,8 @@
|
|||
const idlValue = normalizedAlgorithm[member];
|
||||
// 3.
|
||||
if (idlType === "BufferSource" && idlValue) {
|
||||
normalizedAlgorithm[member] = new Uint8Array(
|
||||
TypedArrayPrototypeSlice(
|
||||
normalizedAlgorithm[member] = TypedArrayPrototypeSlice(
|
||||
new Uint8Array(
|
||||
(ArrayBufferIsView(idlValue) ? idlValue.buffer : idlValue),
|
||||
idlValue.byteOffset ?? 0,
|
||||
idlValue.byteLength,
|
||||
|
|
Loading…
Reference in a new issue