Hi everyone,
Is there a way of enforcing strict/non-strict mode when calling esprima.parse? I've been having issues with parsing test262 cases that are meant to be run in non-strict mode (trivial example: 'yield : 1;').
I've also noticed that the online parser changes mode depending on what the code is - if I type 'eval = 42', it seems to run in non-strict and passes, but if I type 'eval = 42; yield : 1', it switches to strict and gives back the message ''Error: Line 1: Assignment to eval or arguments is not allowed in strict mode".
Many thanks,
Petar