summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArray/prototype/set/BigInt/array-arg-return-abrupt-from-src-get-value.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArray/prototype/set/BigInt/array-arg-return-abrupt-from-src-get-value.js')
-rw-r--r--test/built-ins/TypedArray/prototype/set/BigInt/array-arg-return-abrupt-from-src-get-value.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/built-ins/TypedArray/prototype/set/BigInt/array-arg-return-abrupt-from-src-get-value.js b/test/built-ins/TypedArray/prototype/set/BigInt/array-arg-return-abrupt-from-src-get-value.js
index 451e7bad1..237c94645 100644
--- a/test/built-ins/TypedArray/prototype/set/BigInt/array-arg-return-abrupt-from-src-get-value.js
+++ b/test/built-ins/TypedArray/prototype/set/BigInt/array-arg-return-abrupt-from-src-get-value.js
@@ -25,9 +25,9 @@ features: [BigInt, TypedArray]
testWithBigIntTypedArrayConstructors(function(TA) {
var obj = {
length: 4,
- "0": convertToBigInt(42),
- "1": convertToBigInt(43),
- "3": convertToBigInt(44)
+ "0": 42n,
+ "1": 43n,
+ "3": 44n
};
Object.defineProperty(obj, "2", {
get: function() {
@@ -35,14 +35,14 @@ testWithBigIntTypedArrayConstructors(function(TA) {
}
});
- var sample = new TA(convertToBigInt([1, 2, 3, 4]));
+ var sample = new TA([1n, 2n, 3n, 4n]);
assert.throws(Test262Error, function() {
sample.set(obj);
});
assert(
- compareArray(sample, convertToBigInt([42, 43, 3, 4])),
+ compareArray(sample, [42n, 43n, 3n, 4n]),
"values are set until exception"
);
});