Skip to content
Snippets Groups Projects
Commit ba891c75 authored by Yusuke Suzuki's avatar Yusuke Suzuki Committed by Leo Balter
Browse files

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.
parent 5f338a30
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment