diff --git a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-after-toindex-byteoffset.js b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-after-toindex-byteoffset.js index 8a3d35d67f..86822d650a 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-after-toindex-byteoffset.js +++ b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-after-toindex-byteoffset.js @@ -29,6 +29,8 @@ var sample = new DataView(buffer, 0); $DETACHBUFFER(buffer); -assert.throws(RangeError, () => sample.getBigInt64(Infinity), "Infinity"); +assert.throws(RangeError, () => sample.getBigInt64(Infinity), + "DataView access at index Infinity should throw"); -assert.throws(RangeError, () => sample.getBigInt64(-1), "-1"); +assert.throws(RangeError, () => sample.getBigInt64(-1), + "DataView access at index -1 should throw"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-before-outofrange-byteoffset.js b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-before-outofrange-byteoffset.js index 1c6c4259b3..3dc344f847 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-before-outofrange-byteoffset.js +++ b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer-before-outofrange-byteoffset.js @@ -31,4 +31,5 @@ sample = new DataView(buffer, 0); $DETACHBUFFER(buffer); -assert.throws(TypeError, () => sample.getBigInt64(13), "13"); +assert.throws(TypeError, () => sample.getBigInt64(13), + "detached DataView access should throw"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer.js b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer.js index 19973b4ed0..b5275515e8 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/detached-buffer.js +++ b/test/built-ins/DataView/prototype/getBigInt64/detached-buffer.js @@ -26,4 +26,5 @@ var buffer = new ArrayBuffer(1); var sample = new DataView(buffer, 0); $DETACHBUFFER(buffer); -assert.throws(TypeError, () => sample.getBigInt64(0), "0"); +assert.throws(TypeError, () => sample.getBigInt64(0), + "detached DataView access should throw"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/index-is-out-of-range.js b/test/built-ins/DataView/prototype/getBigInt64/index-is-out-of-range.js index 9610d7a6e1..3a69ff53d7 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/index-is-out-of-range.js +++ b/test/built-ins/DataView/prototype/getBigInt64/index-is-out-of-range.js @@ -30,7 +30,7 @@ var buffer = new ArrayBuffer(12); sample = new DataView(buffer, 0); assert.throws(RangeError, () => sample.getBigInt64(Infinity), - "Infinity"); + "DataView access at index Infinity should throw"); assert.throws(RangeError, () => sample.getBigInt64(13), "13 + 8 > 12"); diff --git a/test/built-ins/DataView/prototype/getBigInt64/negative-byteoffset-throws.js b/test/built-ins/DataView/prototype/getBigInt64/negative-byteoffset-throws.js index e03b2274a8..39913eb7d7 100644 --- a/test/built-ins/DataView/prototype/getBigInt64/negative-byteoffset-throws.js +++ b/test/built-ins/DataView/prototype/getBigInt64/negative-byteoffset-throws.js @@ -23,7 +23,8 @@ features: [DataView, ArrayBuffer, BigInt, arrow-function] var buffer = new ArrayBuffer(12); var sample = new DataView(buffer, 0); -assert.throws(RangeError, () => sample.getBigInt64(-1), "-1"); +assert.throws(RangeError, () => sample.getBigInt64(-1), + "DataView access at index -1 should throw"); assert.throws(RangeError, () => sample.getBigInt64(-Infinity), - "-Infinity"); + "DataView access at index -Infinity should throw");