JS-Interpreter
JS-Interpreter copied to clipboard
A sandboxed JavaScript interpreter in JavaScript.
Edit: There is a pull request for this now, ( #201 ) Trying to figure out how to implement calling an interpreted function from a native function, and be able...
so that users can ``` npm install --save github:NeilFraser/JS-Interpreter ``` closes #156 See https://docs.npmjs.com/cli/install I wondered if it would work without `name` but it's required. It's a bit misleading if...
…, dark mode, alert, and button. Also, change the CSS file and change some styles. And make it responsive.
Hello, When calling `new Date(1234)` I get this error: `TypeError: Bind must be called on a function` I would expect just to get a `Date` with `valueOf` returning `1234`.
Provide a convenient means to allow asynchronous functions to throw an exception rather than return a value.
Allows calling anonymous interpreted functions from native code. (Includes changes in #193) fixes #192, resolves #199, closes #147, closes #189, Examples: **Synchronous callback from native function:** ``` function nativeFunction (func)...
Due to change in circumstances of the original maintainer, I was given ownership of the NPM domain js-interpreter. My old NPM package was js-interpreter-npm (which I picked because js-interpreter was...
I saw someone is sending PR/working on it. Please review them and merge them if OK. Thanks! I saw this one: https://github.com/mercmobily/js-interpreter but I think it's better to put all...
The documentation at https://neil.fraser.name/software/JS-Interpreter/docs.html does not mention `nativeToPseudo`, `pseudoToNative`, `setValueToScope`, etc. These should probably be documented, with simple examples.
After an asynchronous call is completed in an AsyncFunction, you pass your result back to the interpreter using the supplied callback function, then you need to resume stepping the state...