summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/crypto
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/internal/crypto')
-rw-r--r--ext/node/polyfills/internal/crypto/keys.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/polyfills/internal/crypto/keys.ts b/ext/node/polyfills/internal/crypto/keys.ts
index 33034d824..74379015b 100644
--- a/ext/node/polyfills/internal/crypto/keys.ts
+++ b/ext/node/polyfills/internal/crypto/keys.ts
@@ -66,7 +66,7 @@ export const getArrayBufferOrView = hideStackFrames(
| Uint16Array
| Uint32Array => {
if (isAnyArrayBuffer(buffer)) {
- return buffer;
+ return new Uint8Array(buffer);
}
if (typeof buffer === "string") {
if (encoding === "buffer") {