Skip to content

Potentially include parentheses on expressions mixing math and binary operators #872

@loganfsmyth

Description

@loganfsmyth

Another case like #187 that I ran into in babel/babel#5412

const result = (a + b) >>> 1;

becomes

const result = a + b >>> 1;

and I'd be very surprised if anyone remembers the precedence for binary math operators.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty:easyIssues that should be easy to fix. Resolve me on the train to work!help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions