summaryrefslogtreecommitdiff
path: root/harness
diff options
context:
space:
mode:
authorYusuke Suzuki <utatane.tea@gmail.com>2017-10-03 20:22:03 +0200
committerLeo Balter <leonardo.balter@gmail.com>2017-10-03 14:22:03 -0400
commitba891c753c5475460ec8a0ed53973e158df93ca0 (patch)
treee9e3e18a32414f31943b8c37c9de2d1e8d55a433 /harness
parent5f338a30a127df80934f72adf6285ec3b5ed309e (diff)
downloadqtdeclarative-testsuites-ba891c753c5475460ec8a0ed53973e158df93ca0.tar.gz
Do not use BigInt literal without `features: [BigInt]` (#1253)
typeCoercion.js is included in several tests which are not marked as `features: [BigInt]`. Since BigInt is new feature, we should not make the above unrelated tests failed due to lack of BigInt syntax support. Close #1252.
Diffstat (limited to 'harness')
-rw-r--r--harness/typeCoercion.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/harness/typeCoercion.js b/harness/typeCoercion.js
index 76d366d76..3950d4b2c 100644
--- a/harness/typeCoercion.js
+++ b/harness/typeCoercion.js
@@ -330,8 +330,8 @@ function testCoercibleToBigIntZero(test) {
testPrimitiveWrappers(value, "number", test);
}
- testCoercibleToBigIntFromBigInt(0n, test);
- testPrimitiveValue(-0n);
+ testCoercibleToBigIntFromBigInt(BigInt(0), test);
+ testPrimitiveValue(-BigInt(0));
testPrimitiveValue("-0");
testPrimitiveValue(false);
testPrimitiveValue("");
@@ -351,7 +351,7 @@ function testCoercibleToBigIntOne(test) {
testPrimitiveWrappers(value, "number", test);
}
- testCoercibleToBigIntFromBigInt(1n, test);
+ testCoercibleToBigIntFromBigInt(BigInt(1), test);
testPrimitiveValue(true);
// toString() returns "1"