mathiasbynens / jsesc

Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
https://mths.be/jsesc
MIT License
716 stars 48 forks source link

SyntaxError in v0.12.7 #31

Closed danieltigse closed 8 years ago

danieltigse commented 8 years ago

const object = {}; ^^^^^ SyntaxError: Use of const in strict mode.

mathiasbynens commented 8 years ago

https://github.com/mathiasbynens/jsesc#support