Fix ArrayBuffer#transfer tests to preserve maxByteLength

This commit is contained in:
Shu-yu Guo 2023-02-03 11:57:18 -08:00 committed by Ms2ger
parent e7364ea7dc
commit d03f11a81b
4 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ assert.throws(TypeError, function() {
assert.sameValue(dest.resizable, true, 'dest.resizable');
assert.sameValue(dest.byteLength, 5, 'dest.byteLength');
assert.sameValue(dest.maxByteLength, 5, 'dest.maxByteLength');
assert.sameValue(dest.maxByteLength, 8, 'dest.maxByteLength');
var destArray = new Uint8Array(dest);

View File

@ -46,7 +46,7 @@ assert.throws(TypeError, function() {
assert.sameValue(dest.resizable, true, 'dest.resizable');
assert.sameValue(dest.byteLength, 4, 'dest.byteLength');
assert.sameValue(dest.maxByteLength, 4, 'dest.maxByteLength');
assert.sameValue(dest.maxByteLength, 8, 'dest.maxByteLength');
var destArray = new Uint8Array(dest);

View File

@ -44,7 +44,7 @@ assert.throws(TypeError, function() {
assert.sameValue(dest.resizable, true, 'dest.resizable');
assert.sameValue(dest.byteLength, 3, 'dest.byteLength');
assert.sameValue(dest.maxByteLength, 3, 'dest.maxByteLength');
assert.sameValue(dest.maxByteLength, 8, 'dest.maxByteLength');
var destArray = new Uint8Array(dest);

View File

@ -44,4 +44,4 @@ assert.throws(TypeError, function() {
assert.sameValue(dest.resizable, true, 'dest.resizable');
assert.sameValue(dest.byteLength, 0, 'dest.byteLength');
assert.sameValue(dest.maxByteLength, 0, 'dest.maxByteLength');
assert.sameValue(dest.maxByteLength, 8, 'dest.maxByteLength');