JS-Interpreter icon indicating copy to clipboard operation
JS-Interpreter copied to clipboard

A sandboxed JavaScript interpreter in JavaScript.

Results 55 JS-Interpreter issues
Sort by recently updated
recently updated
newest added

Consider the following code example: ```javascript function init(interpreter, scope) { interpreter.setProperty(scope, 'delayedLog', this.createAsyncFunction(function() { var args = [].slice.call(arguments); var callback = args.pop(); setTimeout(function() { callback(console.log.apply(null, args)) }, 1000) })); }...

bug

... I saw the lib, acorn.js's version just 0.4.1 .... If I use the high version ecmascript code , for example : ```js for (let i of [1, 2, 3])...

enhancement

I implemented a utility function (`queueCall`) to call back a pseudo function from the native side. This allows to create "true asynchronous" calls, from the interpreter's point of view. I...

Calling a function like this in two separate threads will result in the second thread being blocked from running until first thread callback is hit. ``` var wrapper = async...

bug

Recording this here as a known issue because it's come up in #187 and in private correspondence with @grassick: JS Interpreter should provide a convenient mechanism for async native functions...

enhancement

Instance properties like `.ERROR`, that are likely to be needed by code adding native functions to the interpreter, are renamed by the compiler, causing (e.g.) `myInterpreter.createObject(myInterpreter.ERROR)` to fail when using...

bug

Hello, i'm trying to use your package in an education project. I'm using npm, but js-interpreter npm package is outdated (not yours), so i want to add your package by...

Currently is empty: https://github.com/NeilFraser/JS-Interpreter/releases I don't know which git commit does the versions here: https://www.npmjs.com/package/js-interpreter-npm, like 1.0.4 point to?

I want the interpreted code to access data, which are not in the memory of the interpreter. There should be a global object "app", similar to "window", which has many...