summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-tostring.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-tostring.js')
-rw-r--r--test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-tostring.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-tostring.js b/test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-tostring.js
index 58801c0b0..bbe3c2c5b 100644
--- a/test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-tostring.js
+++ b/test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-tostring.js
@@ -31,15 +31,15 @@ info: |
9.4.5.9 IntegerIndexedElementSet ( O, index, value )
...
- 3. Let numValue be ? ToNumber(value).
+ 5. If arrayTypeName is "BigUint64Array" or "BigInt64Array",
+ let numValue be ? ToBigInt(value).
...
- 7.1.3 ToNumber ( argument )
+ ToBigInt ( argument )
Object, Apply the following steps:
-
- 1. Let primValue be ? ToPrimitive(argument, hint Number).
- 2. Return ? ToNumber(primValue).
+ 1. Let prim be ? ToPrimitive(argument, hint Number).
+ 2. Return the value that prim corresponds to in Table 10.
7.1.1 ToPrimitive ( input [ , PreferredType ] )
@@ -81,7 +81,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
assert.throws(Test262Error, function() {
new TA([8n, sample]);
- }, "abrupt completion from ToNumber(sample)");
+ }, "abrupt completion from ToBigInt(sample)");
assert.sameValue(valueOf, 1, "valueOf called once");
assert.sameValue(toString, 1, "toString called once");