summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt')
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/desc-value-throws.js2
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-greater-than-last-index.js2
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-lower-than-zero.js2
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-minus-zero.js2
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-not-canonical-index.js4
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-not-integer.js14
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-not-numeric-index.js2
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-accessor-desc.js6
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-configurable.js2
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-not-enumerable.js2
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-not-writable.js2
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex.js8
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-symbol.js2
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/non-extensible-new-key.js2
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/non-extensible-redefine-key.js2
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/set-value.js10
-rw-r--r--test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/this-is-not-extensible.js2
17 files changed, 33 insertions, 33 deletions
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/desc-value-throws.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/desc-value-throws.js
index 016d41b63..d4dbc7267 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/desc-value-throws.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/desc-value-throws.js
@@ -32,7 +32,7 @@ var obj = {
};
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt([42]));
+ var sample = new TA([42n]);
assert.throws(Test262Error, function() {
Object.defineProperty(sample, "0", {value: obj});
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-greater-than-last-index.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-greater-than-last-index.js
index d48eb4afb..c558041e1 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-greater-than-last-index.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-greater-than-last-index.js
@@ -21,7 +21,7 @@ features: [BigInt, Reflect, TypedArray]
---*/
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt([42, 43]));
+ var sample = new TA([42n, 43n]);
assert.sameValue(
Reflect.defineProperty(sample, "2", {
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-lower-than-zero.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-lower-than-zero.js
index faaf037c3..c9ff53898 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-lower-than-zero.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-lower-than-zero.js
@@ -19,7 +19,7 @@ features: [BigInt, Reflect, TypedArray]
---*/
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt([42, 43]));
+ var sample = new TA([42n, 43n]);
assert.sameValue(
Reflect.defineProperty(sample, "-1", {
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-minus-zero.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-minus-zero.js
index 2c838c345..73dcde780 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-minus-zero.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-minus-zero.js
@@ -31,6 +31,6 @@ testWithBigIntTypedArrayConstructors(function(TA) {
false,
"defineProperty returns false"
);
- assert.sameValue(sample[0], convertToBigInt(0), "does not change the value for [0]");
+ assert.sameValue(sample[0], 0n, "does not change the value for [0]");
assert.sameValue(sample["-0"], undefined, "does define a value for ['-0']");
});
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-not-canonical-index.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-not-canonical-index.js
index c87d89cf9..616875f7e 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-not-canonical-index.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-not-canonical-index.js
@@ -37,7 +37,7 @@ var acDesc = {
testWithBigIntTypedArrayConstructors(function(TA) {
keys.forEach(function(key) {
var dataDesc = {
- value: convertToBigInt(42),
+ value: 42n,
writable: true,
configurable: true
};
@@ -50,7 +50,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
"return true after defining data property [" + key + "]"
);
- assert.sameValue(sample1[key], convertToBigInt(42), "value is set to [" + key + "]");
+ assert.sameValue(sample1[key], 42n, "value is set to [" + key + "]");
verifyNotEnumerable(sample1, key);
verifyWritable(sample1, key);
verifyConfigurable(sample1, key);
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-not-integer.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-not-integer.js
index 0d3d3cc79..15bc69fb4 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-not-integer.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-not-integer.js
@@ -29,7 +29,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
false,
"0.1"
);
- assert.sameValue(sample[0], convertToBigInt(0), "'0.1' - does not change the value for [0]");
+ assert.sameValue(sample[0], 0n, "'0.1' - does not change the value for [0]");
assert.sameValue(
sample["0.1"],
undefined,
@@ -47,7 +47,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
"0.000001"
);
assert.sameValue(
- sample[0], convertToBigInt(0),
+ sample[0], 0n,
"'0.000001' - does not change the value for [0]"
);
assert.sameValue(
@@ -66,7 +66,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
false,
"1.1"
);
- assert.sameValue(sample[1], convertToBigInt(0), "'1.1' - does not change the value for [1]");
+ assert.sameValue(sample[1], 0n, "'1.1' - does not change the value for [1]");
assert.sameValue(
sample["1.1"],
undefined,
@@ -84,11 +84,11 @@ testWithBigIntTypedArrayConstructors(function(TA) {
"Infinity"
);
assert.sameValue(
- sample[0], convertToBigInt(0),
+ sample[0], 0n,
"'Infinity' - does not change the value for [0]"
);
assert.sameValue(
- sample[1], convertToBigInt(0),
+ sample[1], 0n,
"'Infinity' - does not change the value for [1]"
);
assert.sameValue(
@@ -108,11 +108,11 @@ testWithBigIntTypedArrayConstructors(function(TA) {
"-Infinity"
);
assert.sameValue(
- sample[0], convertToBigInt(0),
+ sample[0], 0n,
"'-Infinity' - does not change the value for [0]"
);
assert.sameValue(
- sample[1], convertToBigInt(0),
+ sample[1], 0n,
"'-Infinity' - does not change the value for [1]"
);
assert.sameValue(
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-not-numeric-index.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-not-numeric-index.js
index 8f262daeb..b68c6553c 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-not-numeric-index.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-not-numeric-index.js
@@ -18,7 +18,7 @@ features: [BigInt, Reflect, TypedArray]
---*/
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt([42, 43]));
+ var sample = new TA([42n, 43n]);
assert.sameValue(
Reflect.defineProperty(sample, "foo", {value:42}),
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-accessor-desc.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-accessor-desc.js
index 21ab9cfc3..4b4b60ffd 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-accessor-desc.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-accessor-desc.js
@@ -31,7 +31,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
false,
"get accessor"
);
- assert.sameValue(sample[0], convertToBigInt(0), "get accessor - side effect check");
+ assert.sameValue(sample[0], 0n, "get accessor - side effect check");
assert.sameValue(
Reflect.defineProperty(sample, "0", {
@@ -41,7 +41,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
false,
"set accessor"
);
- assert.sameValue(sample[0], convertToBigInt(0), "set accessor - side effect check");
+ assert.sameValue(sample[0], 0n, "set accessor - side effect check");
assert.sameValue(
Reflect.defineProperty(sample, "0", {
@@ -54,5 +54,5 @@ testWithBigIntTypedArrayConstructors(function(TA) {
false,
"get and set accessors"
);
- assert.sameValue(sample[0], convertToBigInt(0), "get and set accessors - side effect check");
+ assert.sameValue(sample[0], 0n, "get and set accessors - side effect check");
});
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-configurable.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-configurable.js
index f928a3f93..51fd77203 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-configurable.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-configurable.js
@@ -31,5 +31,5 @@ testWithBigIntTypedArrayConstructors(function(TA) {
false,
"defineProperty's result"
);
- assert.sameValue(sample[0], convertToBigInt(0), "side effect check");
+ assert.sameValue(sample[0], 0n, "side effect check");
});
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-not-enumerable.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-not-enumerable.js
index 79a56222a..37315f7c9 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-not-enumerable.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-not-enumerable.js
@@ -31,5 +31,5 @@ testWithBigIntTypedArrayConstructors(function(TA) {
false,
"defineProperty's result"
);
- assert.sameValue(sample[0], convertToBigInt(0), "side effect check");
+ assert.sameValue(sample[0], 0n, "side effect check");
});
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-not-writable.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-not-writable.js
index 6f6483b90..26f4363fe 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-not-writable.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex-desc-not-writable.js
@@ -31,5 +31,5 @@ testWithBigIntTypedArrayConstructors(function(TA) {
false,
"defineProperty's result"
);
- assert.sameValue(sample[0], convertToBigInt(0), "side effect check");
+ assert.sameValue(sample[0], 0n, "side effect check");
});
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex.js
index 5f994cd86..3e8241ca0 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-numericindex.js
@@ -19,11 +19,11 @@ features: [BigInt, Reflect, TypedArray]
---*/
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt([42, 42]));
+ var sample = new TA([42n, 42n]);
assert.sameValue(
Reflect.defineProperty(sample, "0", {
- value: convertToBigInt(8),
+ value: 8n,
configurable: false,
enumerable: true,
writable: true
@@ -31,10 +31,10 @@ testWithBigIntTypedArrayConstructors(function(TA) {
true
);
- assert.sameValue(sample[0], convertToBigInt(8), "property value was set");
+ assert.sameValue(sample[0], 8n, "property value was set");
var desc = Object.getOwnPropertyDescriptor(sample, "0");
- assert.sameValue(desc.value, convertToBigInt(8), "desc.value");
+ assert.sameValue(desc.value, 8n, "desc.value");
assert.sameValue(desc.writable, true, "property is writable");
verifyEnumerable(sample, "0");
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-symbol.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-symbol.js
index 467e89a93..08c9d1064 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-symbol.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/key-is-symbol.js
@@ -16,7 +16,7 @@ features: [BigInt, Reflect, Symbol, TypedArray]
---*/
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt([42, 43]));
+ var sample = new TA([42n, 43n]);
var s1 = Symbol("foo");
assert.sameValue(
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/non-extensible-new-key.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/non-extensible-new-key.js
index 5357f3bc0..d3b2694fb 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/non-extensible-new-key.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/non-extensible-new-key.js
@@ -18,7 +18,7 @@ features: [BigInt, Reflect, TypedArray]
---*/
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt([42, 43]));
+ var sample = new TA([42n, 43n]);
Object.preventExtensions(sample);
assert.sameValue(
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/non-extensible-redefine-key.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/non-extensible-redefine-key.js
index eb6e41027..81c7894db 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/non-extensible-redefine-key.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/non-extensible-redefine-key.js
@@ -18,7 +18,7 @@ features: [BigInt, Reflect, TypedArray]
---*/
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt([42, 43]));
+ var sample = new TA([42n, 43n]);
sample.foo = true;
sample.bar = true;
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/set-value.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/set-value.js
index f17b06837..1bcba5b21 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/set-value.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/set-value.js
@@ -26,20 +26,20 @@ features: [BigInt, Reflect, TypedArray]
---*/
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt([0, 0]));
+ var sample = new TA([0n, 0n]);
assert.sameValue(
- Reflect.defineProperty(sample, "0", {value: convertToBigInt(1)}),
+ Reflect.defineProperty(sample, "0", {value: 1n}),
true,
"set value for sample[0] returns true"
);
assert.sameValue(
- Reflect.defineProperty(sample, "1", {value: convertToBigInt(2)}),
+ Reflect.defineProperty(sample, "1", {value: 2n}),
true,
"set value for sample[1] returns true"
);
- assert.sameValue(sample[0], convertToBigInt(1), "sample[0]");
- assert.sameValue(sample[1], convertToBigInt(2), "sample[1]");
+ assert.sameValue(sample[0], 1n, "sample[0]");
+ assert.sameValue(sample[1], 2n, "sample[1]");
});
diff --git a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/this-is-not-extensible.js b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/this-is-not-extensible.js
index 04664a126..df15ab556 100644
--- a/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/this-is-not-extensible.js
+++ b/test/built-ins/TypedArrays/internals/DefineOwnProperty/BigInt/this-is-not-extensible.js
@@ -18,7 +18,7 @@ features: [BigInt, Reflect, Symbol, TypedArray]
---*/
testWithBigIntTypedArrayConstructors(function(TA) {
- var sample = new TA(convertToBigInt([42, 43]));
+ var sample = new TA([42n, 43n]);
Object.preventExtensions(sample);