diff --git a/test/built-ins/TypedArray/prototype/byteLength/BigInt/resizable-array-buffer-auto.js b/test/built-ins/TypedArray/prototype/byteLength/BigInt/resizable-array-buffer-auto.js index 717e40b0bac..3bf215b2d05 100644 --- a/test/built-ins/TypedArray/prototype/byteLength/BigInt/resizable-array-buffer-auto.js +++ b/test/built-ins/TypedArray/prototype/byteLength/BigInt/resizable-array-buffer-auto.js @@ -42,5 +42,12 @@ testWithBigIntTypedArrayConstructors(function(TA) { expected = 0; } catch (_) {} + assert.sameValue(array.byteLength, expected, "following shrink (on boundary)"); + + try { + ab.resize(0); + expected = 0; + } catch (_) {} + assert.sameValue(array.byteLength, expected, "following shrink (out of bounds)"); }); diff --git a/test/built-ins/TypedArray/prototype/length/BigInt/resizable-array-buffer-auto.js b/test/built-ins/TypedArray/prototype/length/BigInt/resizable-array-buffer-auto.js index a1f191a103c..94dbad11cc8 100644 --- a/test/built-ins/TypedArray/prototype/length/BigInt/resizable-array-buffer-auto.js +++ b/test/built-ins/TypedArray/prototype/length/BigInt/resizable-array-buffer-auto.js @@ -42,5 +42,12 @@ testWithBigIntTypedArrayConstructors(function(TA) { expected = 0; } catch (_) {} + assert.sameValue(array.length, expected, "following shrink (on boundary)"); + + try { + ab.resize(0); + expected = 0; + } catch (_) {} + assert.sameValue(array.length, expected, "following shrink (out of bounds)"); });