foliojs / brotli.js

A JavaScript port of the Brotli compression algorithm, as used in WOFF2
500 stars 51 forks source link

Aliasify: Syntax Error on "const" #12

Closed xErik closed 7 years ago

xErik commented 8 years ago

Hello!

Aliasify is complaining about const declarations. I suppose you used const for a reason and will keep it?

browserify node_modules/brotli/dec/decode.js -g aliasify -o test.js

SyntaxError: Unexpected token (26:6) (while aliasify was processing node_modules/brotli/dec/decode.js) while parsing file: node_modules/brotli/dec/decode.js

Thank you.

GuillaumeDucret commented 7 years ago

Hello.

In addition, because of those const declarations, pdfkit can't load on IE10. Any chance they could be removed in source or in a build step?

Thanks

devongovett commented 7 years ago

sure, if you make a PR I'll merge!