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

Possible regression with 0.14.37 and new ASI behavior #2201

Closed
edoardocavazza opened this issue Apr 21, 2022 · 1 comment
Closed

Possible regression with 0.14.37 and new ASI behavior #2201

edoardocavazza opened this issue Apr 21, 2022 · 1 comment

Comments

@edoardocavazza
Copy link

Consider the following sample (I know it is not a meaningful piece of code, but it's the easiest case to reproduce):

index.ts

export function check(value: number) {
    return 3 < value >>> 0;
}
esbuild index.ts

Output with 0.14.36

export function check(value) {
  return 3 < value >>> 0;
}

Output with 0.14.37

export function check(value) {
  return 3 >> 0;
}
@evanw
Copy link
Owner

evanw commented Apr 21, 2022

Thanks for the report. I'll work on figuring out what to do here.

@evanw evanw closed this as completed in 1a57168 Apr 21, 2022
evanw added a commit that referenced this issue Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants