summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArrays/ctors-bigint/object-arg
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArrays/ctors-bigint/object-arg')
-rw-r--r--test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-as-array-returns.js4
-rw-r--r--test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-as-generator-iterable-returns.js6
-rw-r--r--test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-new-instance-extensibility.js6
-rw-r--r--test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-from-property.js4
-rw-r--r--test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-to-primitive-typeerror.js2
-rw-r--r--test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-to-primitive.js2
-rw-r--r--test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-tostring.js2
-rw-r--r--test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-valueof-typeerror.js2
-rw-r--r--test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-valueof.js2
-rw-r--r--test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-property.js4
10 files changed, 17 insertions, 17 deletions
diff --git a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-as-array-returns.js b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-as-array-returns.js
index 84ada078a..ee21ba4cf 100644
--- a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-as-array-returns.js
+++ b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-as-array-returns.js
@@ -21,8 +21,8 @@ var obj = [7, 42];
testWithTypedArrayConstructors(function(TA) {
var typedArray = new TA(convertToBigInt(obj));
assert.sameValue(typedArray.length, 2);
- assert.sameValue(typedArray[0], convertToBigInt(7));
- assert.sameValue(typedArray[1], convertToBigInt(42));
+ assert.sameValue(typedArray[0], 7n);
+ assert.sameValue(typedArray[1], 42n);
assert.sameValue(typedArray.constructor, TA);
assert.sameValue(Object.getPrototypeOf(typedArray), TA.prototype);
});
diff --git a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-as-generator-iterable-returns.js b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-as-generator-iterable-returns.js
index db9597546..c7236d4ad 100644
--- a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-as-generator-iterable-returns.js
+++ b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-as-generator-iterable-returns.js
@@ -18,13 +18,13 @@ features: [BigInt, TypedArray]
testWithTypedArrayConstructors(function(TA) {
var obj = (function *() {
- yield convertToBigInt(7); yield convertToBigInt(42);
+ yield 7n; yield 42n;
})();
var typedArray = new TA(obj);
assert.sameValue(typedArray.length, 2);
- assert.sameValue(typedArray[0], convertToBigInt(7));
- assert.sameValue(typedArray[1], convertToBigInt(42));
+ assert.sameValue(typedArray[0], 7n);
+ assert.sameValue(typedArray[1], 42n);
assert.sameValue(typedArray.constructor, TA);
assert.sameValue(Object.getPrototypeOf(typedArray), TA.prototype);
});
diff --git a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-new-instance-extensibility.js b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-new-instance-extensibility.js
index 9536f2456..553714277 100644
--- a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-new-instance-extensibility.js
+++ b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-new-instance-extensibility.js
@@ -31,9 +31,9 @@ features: [BigInt, TypedArray]
testWithTypedArrayConstructors(function(TA) {
var obj = {
- "0": convertToBigInt(0),
- "1": convertToBigInt(1),
- "2": convertToBigInt(2),
+ "0": 0n,
+ "1": 1n,
+ "2": 2n,
length: 3
};
diff --git a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-from-property.js b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-from-property.js
index 41e153911..340d5da44 100644
--- a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-from-property.js
+++ b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-from-property.js
@@ -32,8 +32,8 @@ Object.defineProperty(obj, "2", {
});
testWithTypedArrayConstructors(function(TA) {
- obj[0] = convertToBigInt(0);
- obj[1] = convertToBigInt(0);
+ obj[0] = 0n;
+ obj[1] = 0n;
assert.throws(Test262Error, function() {
new TA(obj);
});
diff --git a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-to-primitive-typeerror.js b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-to-primitive-typeerror.js
index 50dd3b1a3..68d8c0f63 100644
--- a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-to-primitive-typeerror.js
+++ b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-to-primitive-typeerror.js
@@ -69,7 +69,7 @@ testWithTypedArrayConstructors(function(TA) {
};
assert.throws(TypeError, function() {
- new TA([convertToBigInt(8), sample]);
+ new TA([8n, sample]);
}, "abrupt completion from sample @@toPrimitive");
assert.sameValue(toPrimitive, 1, "toPrimitive was called once");
diff --git a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-to-primitive.js b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-to-primitive.js
index f468bdea7..f8fc44562 100644
--- a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-to-primitive.js
+++ b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-to-primitive.js
@@ -67,7 +67,7 @@ testWithTypedArrayConstructors(function(TA) {
};
assert.throws(Test262Error, function() {
- new TA([convertToBigInt(8), sample]);
+ new TA([8n, sample]);
}, "abrupt completion from sample @@toPrimitive");
assert.sameValue(toPrimitive, 1, "toPrimitive was called once");
diff --git a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-tostring.js b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-tostring.js
index 1b507ccbf..6ce9f8ca5 100644
--- a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-tostring.js
+++ b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-tostring.js
@@ -80,7 +80,7 @@ testWithTypedArrayConstructors(function(TA) {
};
assert.throws(Test262Error, function() {
- new TA([convertToBigInt(8), sample]);
+ new TA([8n, sample]);
}, "abrupt completion from ToNumber(sample)");
assert.sameValue(valueOf, 1, "valueOf called once");
diff --git a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-valueof-typeerror.js b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-valueof-typeerror.js
index aeb3eb632..c0f9e7269 100644
--- a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-valueof-typeerror.js
+++ b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-valueof-typeerror.js
@@ -81,7 +81,7 @@ testWithTypedArrayConstructors(function(TA) {
};
assert.throws(TypeError, function() {
- new TA([convertToBigInt(8), sample]);
+ new TA([8n, sample]);
}, "abrupt completion from ToNumber(sample)");
assert.sameValue(valueOf, 1, "valueOf called once");
diff --git a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-valueof.js b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-valueof.js
index 361426d2c..6919d931a 100644
--- a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-valueof.js
+++ b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-obj-valueof.js
@@ -75,7 +75,7 @@ testWithTypedArrayConstructors(function(TA) {
};
assert.throws(Test262Error, function() {
- new TA([convertToBigInt(8), sample]);
+ new TA([8n, sample]);
}, "abrupt completion from ToNumber(sample)");
assert.sameValue(valueOf, 1, "valueOf called once");
diff --git a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-property.js b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-property.js
index df7564b9d..b752780da 100644
--- a/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-property.js
+++ b/test/built-ins/TypedArrays/ctors-bigint/object-arg/object-arg-throws-setting-property.js
@@ -32,8 +32,8 @@ var obj = {
};
testWithTypedArrayConstructors(function(TA) {
- obj[0] = convertToBigInt(0);
- obj[1] = convertToBigInt(0);
+ obj[0] = 0n;
+ obj[1] = 0n;
assert.throws(Test262Error, function() {
new TA(obj);
});