mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
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);
|
testPrimitiveWrappers(value, "number", test);
|
||||||
}
|
}
|
||||||
|
|
||||||
testCoercibleToBigIntFromBigInt(0n, test);
|
testCoercibleToBigIntFromBigInt(BigInt(0), test);
|
||||||
testPrimitiveValue(-0n);
|
testPrimitiveValue(-BigInt(0));
|
||||||
testPrimitiveValue("-0");
|
testPrimitiveValue("-0");
|
||||||
testPrimitiveValue(false);
|
testPrimitiveValue(false);
|
||||||
testPrimitiveValue("");
|
testPrimitiveValue("");
|
||||||
@ -351,7 +351,7 @@ function testCoercibleToBigIntOne(test) {
|
|||||||
testPrimitiveWrappers(value, "number", test);
|
testPrimitiveWrappers(value, "number", test);
|
||||||
}
|
}
|
||||||
|
|
||||||
testCoercibleToBigIntFromBigInt(1n, test);
|
testCoercibleToBigIntFromBigInt(BigInt(1), test);
|
||||||
testPrimitiveValue(true);
|
testPrimitiveValue(true);
|
||||||
|
|
||||||
// toString() returns "1"
|
// toString() returns "1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user