-
Notifications
You must be signed in to change notification settings - Fork 12.8k
BigInt shouldn't be considered experimental #28456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
CC @bterlson @RyanCavanaugh @calebsander for thoughts |
I would agree that |
ok. You need to update baselines and also remove experimentalBigInt from bunch of test cases |
const bigintNumber = 123n * 0b1111n + 0o444n * 0x7fn; // each literal should error | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you added 2 newlines here, but probably only meant to add 1
var bigintType; // should not error | ||
var bigintLiteralType; // should not error when used as type | ||
var bigintNegativeLiteralType; // should not error when used as type | ||
var bigintNumber = 123n * 15n + 292n * 0x7fn; // each literal should error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't these warnExperimentalBigIntLiteral.*
baselines be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You removed warnExperimentalBigIntLiteral.errors.txt
but not the .js
, the .symbols
, and the .types
files
I know that in #25886 we discussed that we should gate the functionality behind a flag, but we have a degree of confidence that the BigInt proposal is relatively stable.
Additionally, we haven't hidden features like object rest/spread behind a flag, even when that feature had no browser implementations, so it's not clear why we need it here.