JS-Interpreter
JS-Interpreter copied to clipboard
A sandboxed JavaScript interpreter in JavaScript.
Hi Neil, I'd like to be able to pass an object from outside the sandbox inside, but without creating a copy it. Rather I'd like to directly access the outside...
I think this could help some devs coding in TypeScript to use your nice JavaScript interpreter more easily. Best, Yahiko
The following code produces a confusing error message: var foo = 100; foo(); Actual: 'TypeError: 100 is not a function' Expected: 'TypeError: foo is not a function' The only problem...
There does not appear to be a way to call an unnamed function from an external API. If the function to be called was declared ahead of time, it has...
Hi, Is it possible to create a function, and then run the interpreter _while_ passing arguments to the created function? I need to replicate this: var f = new Function('return...
Potential performance boost: https://github.com/NeilFraser/CodeCity/pull/127
I was implementing custom blocks in my Blockly project, and quickly filled my init function with boilerplate code consisting from this (for each function): ``` var wrapper = function(text) {...
I've been a big fan of this interpreter for several years, and have used this for my research projects such as [TextAlive](http://textalive.jp) and [f3.js](http://f3js.org) - so let me firstly thank...
The following should evaluate to `[object String]` but in fact evaluates to `"Hello"`: ```JS Object.prototype.toString.apply(new String("Hello")) ``` Indeed, in general this method should always return a string of the form...