JS-Interpreter
JS-Interpreter copied to clipboard
A sandboxed JavaScript interpreter in JavaScript.
I am currently maintaining https://github.com/mobily-enterprises/js-interpreter. It's available on npm as `js-interpreter-npm`. All it does, it repackage acorn.js and `js-interpreter.js`, but adding this at the BEGINNING of `js-interpreter.js`: ``` var globalThis...
New bug report. I found that error messages behave incorrectly in the following case: ``` var err = new TypeError("default"); alert(err.message); // default err.message = "changed!" alert(err.message); // changed! throw...
I'm writing unit tests in my fork, and I think that I've bumped into a bug: ```javascript test('it shoud box primitive value when using Object constructor', () => { const...
I'm trying to adopt JS-INterpreter, to a library that I've creted earlier, JS-Interpreter does contain two helper functions createnativefunction and createasync function, but none of them worked for my functions...
JavaScript coerces a Date to a string: > (new Date()) + 60000 "Wed Dec 18 2024 00:19:11 GMT+0100 (Central European Standard Time)60000" JS-Interpreter coerces a Date to a number: >...