Skip to content

Commit

Permalink
[Tests] node 20 throws with RABs that are not a multiple of 4 and 8
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 21, 2025
1 parent 5b7adac commit d9d3944
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -17803,13 +17803,13 @@ var es2024 = function ES2024(ES, ops, expectedMissing, skips) {
'non-fixed length, return floor((byteLength - byteOffset) / elementSize)',
{ skip: !('resizable' in ArrayBuffer.prototype) },
function (tsat) {
var rab = new ArrayBuffer(17, { maxByteLength: 64 });
var rab = new ArrayBuffer(24, { maxByteLength: 64 });
var arr = new TA(rab, 8);
record = ES.MakeTypedArrayWithBufferWitnessRecord(arr, 'UNORDERED');

tsat.equal(
ES.TypedArrayLength(record),
Math.floor((17 - 8) / elementSize),
Math.floor((24 - 8) / elementSize),
type + ' + resizable AB: has expected length'
);

Expand All @@ -17821,7 +17821,7 @@ var es2024 = function ES2024(ES, ops, expectedMissing, skips) {
'non-fixed length, detached throws',
{ skip: !('resizable' in ArrayBuffer.prototype) || !esV.canDetach },
function (tsat) {
var rab = new ArrayBuffer(17, { maxByteLength: 64 });
var rab = new ArrayBuffer(24, { maxByteLength: 64 });
var arr = new TA(rab, 8);
record = ES.MakeTypedArrayWithBufferWitnessRecord(arr, 'UNORDERED');

Expand Down

0 comments on commit d9d3944

Please sign in to comment.