rehanift/engine.js — Issue #7: Defining and invoking a function can walk the 'function caller chain' out of the sandbox
Author: rehanift
Created: 2012-01-05 16:21:53+00:00
State: open

Start server with `node script/server.js` then run

```javascript
var engine = require("engine.js").engine;

var client = engine.client.create();

var task = client.createTask();
task.setContext('(function(){ return {} })');
task.setCode('(function foo() { console.log( foo.caller.caller.toString());})()');
task.setLocals({});

task.on('eval', function(data){
console.log(data);
});

task.on('output', function(data){
console.log(data);
});

task.run();
```