Skip to content

Commit

Permalink
Remove invalid integerification in readBigInt Buffer APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
aapoalas committed Aug 13, 2023
1 parent 29f34a8 commit 82df8ac
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ext/node/polyfills/internal/buffer.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,6 @@ Buffer.prototype.readBigUint64LE =
Buffer.prototype.readBigUInt64LE =
defineBigIntMethod(
function readBigUInt64LE(offset = 0) {
offset = offset >>> 0;
checkBounds(this, offset, 8);

/**
Expand All @@ -985,7 +984,6 @@ Buffer.prototype.readBigUint64BE =
Buffer.prototype.readBigUInt64BE =
defineBigIntMethod(
function readBigUInt64BE(offset = 0) {
offset = offset >>> 0;
checkBounds(this, offset, 8);

/**
Expand Down Expand Up @@ -1098,7 +1096,6 @@ Buffer.prototype.readInt32BE = function readInt32BE(offset = 0) {

Buffer.prototype.readBigInt64LE = defineBigIntMethod(
function readBigInt64LE(offset = 0) {
offset = offset >>> 0;
checkBounds(this, offset, 8);
/**
* @type {DataView}
Expand All @@ -1110,7 +1107,6 @@ Buffer.prototype.readBigInt64LE = defineBigIntMethod(

Buffer.prototype.readBigInt64BE = defineBigIntMethod(
function readBigInt64BE(offset = 0) {
offset = offset >>> 0;
checkBounds(this, offset, 8);
/**
* @type {DataView}
Expand Down

0 comments on commit 82df8ac

Please sign in to comment.