Skip to content
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

BigInts should be folded during constant evaluation #1388

Closed
dead-claudia opened this issue May 14, 2023 · 1 comment
Closed

BigInts should be folded during constant evaluation #1388

dead-claudia opened this issue May 14, 2023 · 1 comment

Comments

@dead-claudia
Copy link

Bug report or Feature request? Feature request

Version (complete output of terser -V or specific git commit) 5.17.3

Complete CLI command or minify() options used
terser --compress --mangle --module

terser input

const a = 1n
export const b = a + 2n
export const c = 4n + 5n

terser output or error

export const b=1n+2n;export const c=4n+5n;

Expected result

export const b=3n;export const c=9n;
@fabiosantoscode
Copy link
Collaborator

Thanks for these. This is a slow project and I have to give priority to bugs, but sometimes I get to these as well :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants