Skip to content
This repository was archived by the owner on May 30, 2020. It is now read-only.
This repository was archived by the owner on May 30, 2020. It is now read-only.

Broken if/else blocks #56

@NeilWhitworth

Description

@NeilWhitworth

if/else blocks get a new line character added incorrectly, causing some browsers to fails with 'Unexpected strict mode reserved word'

This input javascript
if (true) {
console.log('in if');
} else {
console.log('in else');
}

results in this minified block
;if(!0){console.log('in if')}
else{console.log('in else')}

instead of
;if(!0){console.log('in if')}else{console.log('in else')}

This was introduced by dc3c407. See also #25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions