Skip to content

Consider allowing x|=0 as a valid Parameter Type Annotation #122

Description

@srijs

Hi!

Uglify.js and other js compressors translate a pattern like x=x|0 into x|=0 because it is one byte shorter. Unfortunately, this breaks asm.js code that is minified with one of those tools.

Regarding to the EcmaScript standard, those two seem to be funtionally equivalent, so I was wondering if it would be possible to make the asm.js spec more lenient by allowing x|=0 to be a valid parameter type annotation?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions