Skip to content

Fix minifyGlobals on duplicate definitions#10522

Merged
kripken merged 1 commit intomasterfrom
minGlob
Feb 21, 2020
Merged

Fix minifyGlobals on duplicate definitions#10522
kripken merged 1 commit intomasterfrom
minGlob

Conversation

@kripken
Copy link
Member

@kripken kripken commented Feb 21, 2020

In JS it is valid to write

var a;
var a;

but that wasn't handled properly in minifyGlobals. This only
became a problem now (years after the pass was written)
because we added a loop in the mem init that uses i, and if
there are enough imports one of them might be i as well,
leading to incorrect minification and a bugreport from the
mailing list ("js output not running with 1.39.8").

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants