mirror of https://github.com/tc39/test262.git
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:
parent
5f338a30a1
commit
ba891c753c
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue