Information
Package | puzzle-box |
Description | Sandboxing with call tracing and more |
Node Version | >= 10 |
Usage
This was made to be used by blackboard.
var puzzleBox = ; var test = puzzleBox; // set a global context for the sandboxtest; // specify the code to execute// a global function called finished will be created// in the sandbox. call this when you are donetestcode'add(1,2); var hi = 123; finished();'; // track calls to a function in the contexttest; // execute the code in the sandboxtest; test;
Examples
You can view more examples in the example folder.