Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aapoalas committed Mar 19, 2023
1 parent 2f23492 commit e74c58a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/node/polyfills/internal/buffer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ function fromArrayBuffer(obj, byteOffset, length) {

const buffer = new Uint8Array(obj, byteOffset, length);
Object.setPrototypeOf(buffer, Buffer.prototype);
buf[VIEW_SYMBOL] = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
buffer[VIEW_SYMBOL] = new DataView(buffer.buffer, buffer.byteOffset, buffer.byteLength);
return buffer;
}

Expand Down

0 comments on commit e74c58a

Please sign in to comment.