summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-valueof.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-valueof.js')
-rw-r--r--test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-valueof.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-valueof.js b/test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-valueof.js
index d5138d56e..b9f0d461a 100644
--- a/test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-valueof.js
+++ b/test/built-ins/TypedArrays/ctors-bigint/object-arg/throws-setting-obj-valueof.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 ] )
@@ -76,7 +76,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");
});