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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Regression compiling binary operations in typescript code #14813

Closed
1 task
zxbodya opened this issue Jul 30, 2022 · 2 comments 路 Fixed by #14819
Closed
1 task

[Bug]: Regression compiling binary operations in typescript code #14813

zxbodya opened this issue Jul 30, 2022 · 2 comments 路 Fixed by #14819
Labels
area: typescript i: bug i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: parser

Comments

@zxbodya
Copy link
Contributor

zxbodya commented Jul 30, 2022

馃捇

  • Would you like to work on a fix?

How are you using Babel?

@babel/cli

Input code

let f, h = 0, j = 0;

f = h >>> 0 < j >>> 0;

typescript playground

Configuration file name

No response

Configuration

No response

Current and expected behavior

yarn run babel test.ts --out-file test.js --presets=@babel/preset-typescript

when using @babel/parser@7.18.6 (and newer versions):

let f,
    h = 0,
    j = 0;
f = h >>> 0 >> 0;

expected, and also when using @babel/parser@7.18.5:

let f,
    h = 0,
    j = 0;
f = h >>> 0 < j >>> 0;

Environment

{
  "devDependencies": {
    "@babel/cli": "^7.18.9",
    "@babel/preset-typescript": "^7.18.6"
  },
  "dependencies": {
    "@babel/core": "^7.18.9"
  },
  "resolutions": {
    "@babel/parser": "7.18.6"
  }
}

Possible solution

No response

Additional context

No response

@babel-bot
Copy link
Collaborator

Hey @zxbodya! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.

@zxbodya
Copy link
Contributor Author

zxbodya commented Jul 30, 2022

the regression looks to be introduced in #14636

@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Nov 27, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: typescript i: bug i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: parser
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants