summaryrefslogtreecommitdiff
path: root/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js')
-rw-r--r--test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js b/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js
index fcb35cf21..9ad011062 100644
--- a/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js
+++ b/test/built-ins/DataView/prototype/setBigInt64/negative-byteoffset-throws.js
@@ -12,11 +12,11 @@ var buffer = new ArrayBuffer(12);
var sample = new DataView(buffer, 0);
assert.throws(RangeError, function() {
- sample.setBigInt64(-1, 39n);
+ sample.setBigInt64(-1, 39 n);
}, "DataView access at index -1 should throw");
-assert.sameValue(sample.getBigInt64(0), 0n, "-1 - no value was set");
+assert.sameValue(sample.getBigInt64(0), 0 n, "-1 - no value was set");
assert.throws(RangeError, function() {
- sample.setBigInt64(-Infinity, 39n);
+ sample.setBigInt64(-Infinity, 39 n);
}, "DataView access at index -Infinity should throw");
-assert.sameValue(sample.getBigInt64(0), 0n, "-Infinity - no value was set");
+assert.sameValue(sample.getBigInt64(0), 0 n, "-Infinity - no value was set");