lukehaas / RunJS

RunJS is a JavaScript playground for macOS, Windows and Linux. Write code with instant feedback and access to Node.js and browser APIs.
https://runjs.app
2k stars 43 forks source link

option to disable Strict mode #612

Closed brandonmcconnell closed 3 months ago

brandonmcconnell commented 3 months ago

I am attempting to demonstrate the former usage of with, but I get the error SyntaxError: 'with' in strict mode.. I don't see any option to opt out of strict mode, and I am not explicitly setting it in my source, so it would be helpful to add an option to disable strict mode.

lukehaas commented 3 months ago

@brandonmcconnell I've attempted to see the same syntax error you saw, but I'm not able to. I'm able to use with without any issues. Could you provide an example of the code you're running? Also, which version of RunJS are you using?

brandonmcconnell commented 3 months ago

I am running RunJS Version 2.11.0 (2.11.0), but I cannot seem to reproduce it myself now either. I'll open a new ticket if I run into this again.