minilog icon indicating copy to clipboard operation
minilog copied to clipboard

Octal literal in strict mode: octal literals not allowed in strict mode

Open vectorjohn opened this issue 6 years ago • 1 comments

When minilog is used in a project that builds with something like rollup.js, when strict mode is enabled, octal literals (bare or in strings) are not allowed.

This patch uses the alternate way, hex literals in strings. I.e. \033 -> \x1B

vectorjohn avatar Jan 19 '19 01:01 vectorjohn

Also, build instructions were unclear, and my second commit changed Makefile to use uglify-js instead of uglifyjs, and committed a package-lock.json.

You can toss the second two commits if you don't like that, the important part is ff3c295

vectorjohn avatar Jan 19 '19 01:01 vectorjohn