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.
This commit is contained in:
Yusuke Suzuki 2017-10-03 20:22:03 +02:00 committed by Leo Balter
parent 5f338a30a1
commit ba891c753c
1 changed files with 3 additions and 3 deletions

View File

@ -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"