101arrowz / fflate

High performance (de)compression in an 8kB package
https://101arrowz.github.io/fflate
MIT License
2.21k stars 77 forks source link

refactor: add semicolon at the end of self-invoking function #129

Closed lelinhtinh closed 2 years ago

lelinhtinh commented 2 years ago

Safely concatenate. Ref: https://github.com/airbnb/javascript/issues/44#issuecomment-13063933 Actual error case: https://github.com/Tampermonkey/tampermonkey/issues/595

101arrowz commented 2 years ago

I'll merge this, but I feel like some issues could still arise. Wouldn't xfetch, which was referenced in the Tampermonkey issue, still fail if concatenated with fflate unless a newline is used to separate them?