Skip to content

Commit

Permalink
Fix resizable ArrayBuffer subarray tests (#3671)
Browse files Browse the repository at this point in the history
This is from the normative change in
tc39/proposal-resizablearraybuffer#93, which
got consensus in the March 2022 TC39.
  • Loading branch information
syg committed Sep 20, 2022
1 parent 9215420 commit 465cf4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ for (let ctor of ctors) {
return 0;
}
};
assert.compareArray(ToNumbers(lengthTracking.subarray(evil)), [
assert.compareArray(
ToNumbers(lengthTracking.subarray(evil, lengthTracking.length)), [
0,
2,
4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ for (let ctor of ctors) {
}
};
assert.throws(RangeError, () => {
lengthTracking.subarray(evil);
lengthTracking.subarray(evil, lengthTracking.length);
});
}

Expand Down

0 comments on commit 465cf4a

Please sign in to comment.