chriso/node.io — Issue #69: Eval writing out JobClass emit function in result
Author: zgohr
Created: 2011-12-03 01:01:39+00:00
State: open

```
$ echo "foo" | node.io -s eval "input.match(/bar/)"
```

Outputs this text to stdout

```
function (result) {
worker.emit('output', result);
instance.cancel_timeout();
instance.isComplete = true;
var emit = function () {

job.instances--;

//Reuse the instance later on
job.instance_pool.push(instance);

worker.emit('process');
};

if (job.options.wait) {
setTimeout(emit, job.options.wait * 1000);
} else {
emit();
}
}
```

When I would have expected nothing to be returned.