summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-to-primitive.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-to-primitive.js')
-rw-r--r--test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-to-primitive.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-to-primitive.js b/test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-to-primitive.js
index 9d84bee67..7742ba6ac 100644
--- a/test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-to-primitive.js
+++ b/test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-to-primitive.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 ] )