mathiasbynens / he

A robust HTML entity encoder/decoder written in JavaScript.
https://mths.be/he
MIT License
3.45k stars 254 forks source link

Error when minimizing with Google closure-compiler #71

Open Light-Wizzard opened 5 years ago

Light-Wizzard commented 5 years ago

https://github.com/google/closure-compiler he.js: line 338, col 60, Expected an assignment or function call and instead saw an expression. has(he, key) && (freeExports[key] = he[key]);

My guess would be something like this:

if (has(he, key)) { freeExports[key] = he[key]; }

reno1979 commented 5 years ago

same here, not accepted by google closure compiler, it complains about the undefined variable exports