-
-
Notifications
You must be signed in to change notification settings - Fork 450
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
transformer: 2n ** 32n
gets transformed into runtime error Math.pow(2n, 32n)
#5822
Comments
Background on why it's not feasible to support It looks like we should bail on any BigInt literal, not just when used with Side note: |
@Dunqing How do we determine whether https://babel.dev/docs/babel-plugin-syntax-bigint is enabled or not in our transformer? |
part of #5822 They will produce runtime errors.
@Dunqing need to figure out whether bigint is targeted or not. |
part of #5822 They will produce runtime errors.
I think we need to bail in this case :-/
tsc and esbuild throws "BigInt literals are not available when targeting lower than ES2020."
The text was updated successfully, but these errors were encountered: