Please sign in to comment.
Fix reading and writing source maps containing unicode characters
ae6f08b added the `'ascii'` parameter to Buffer conversion functions `to_ascii` and `to_base64`. However `to_ascii` didn't actually convert to ascii before, but to a utf8 string (the default Buffer.toString behaviour). Passing in 'ascii' breaks reading and writing valid source map with unicode characters. This patch removes the 'ascii' parameter so that the conversion uses utf8 again. I would've filed this upstream but it didn't get merged into uglify-js yet (only uglify-es, and thus terser). Ref mishoo/UglifyJS2#2947
- Loading branch information...
Showing with 17 additions and 2 deletions.