insist icon indicating copy to clipboard operation
insist copied to clipboard

make compatible with older js engines

Open djulien opened this issue 9 years ago • 4 comments

Replaced "const" with "var" so it can be used with older js engines. (I'm using a recent js engine, but a nested esprima module is using older syntax rules so it doesn't like the consts)

djulien avatar Sep 12 '15 23:09 djulien

This makes me sad. esprima cannot parse the const keyword?

seanmonstar avatar Sep 13 '15 20:09 seanmonstar

Well, the version that came down when I did an npm install for insist didn't like "const" - the package.json dependencies show esprima version ~1.0.4. However, I see that https://github.com/jquery/esprima is up to version 2.6.0 now, so maybe a newer version would fix it.

djulien avatar Sep 14 '15 03:09 djulien

I've just published v1.0.0, that updates that dependency on esprima to ^2.0. Does that fix this?

seanmonstar avatar Sep 14 '15 17:09 seanmonstar

It works with const okay now. thanks

I'm also getting an error from esprima when I use a she-bang file, but I think that problem is within esprima itself.

djulien avatar Sep 15 '15 04:09 djulien