Skip to content

Small semicolon inconsistency fix for some minifiers #74

Closed
@funkynicco

Description

@funkynicco

There is a missing semicolon for the variable declarations on lines 124-131 (as of current date of writing this, latest commit being e7444c9).

This breaks some minifiers which makes the minified code as following example:

var x=function(){}if(!y)

This generates "unexpected if".

If anyone is able to fix this it would be great (theres a number of minifiers that does not build up an AST syntax tree to determine what the code actually does).

If figured opening an issue on the matter is less effort overall than forking and doing a pull request for a very tiny fix.

Thanks.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions