mirror of https://github.com/tc39/test262.git
Fix resizable ArrayBuffer subarray tests (#3671)
This is from the normative change in https://github.com/tc39/proposal-resizablearraybuffer/pull/93, which got consensus in the March 2022 TC39.
This commit is contained in:
parent
9215420dee
commit
465cf4a5c0
|
@ -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,
|
||||
|
|
|
@ -167,7 +167,7 @@ for (let ctor of ctors) {
|
|||
}
|
||||
};
|
||||
assert.throws(RangeError, () => {
|
||||
lengthTracking.subarray(evil);
|
||||
lengthTracking.subarray(evil, lengthTracking.length);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue