Skip to content

es/minifier: useless binary operators not always dropped #11108

@Le0Developer

Description

@Le0Developer

Describe the feature

this.test = function(a) {
    return (0 | !(a < 0)) ^ (a < 0) << 8;
};

The 0 | of 0 | !(a < 0) is not required. Terser gets this.

Babel plugin or link to the feature description

No response

Additional context

Playground

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions