Fix printing in specs.

This commit is contained in:
Cheng Zhao 2014-04-28 03:55:56 +00:00
parent 97006bcbc3
commit 97f0314589

View file

@ -12,24 +12,24 @@ ipc.on('message', function(event, arg) {
event.sender.send('message', arg); event.sender.send('message', arg);
}); });
ipc.on('console.log', function(pid, rid, args) { ipc.on('console.log', function(event, args) {
console.log.apply(console, args); console.log.apply(console, args);
}); });
ipc.on('console.error', function(pid, rid, args) { ipc.on('console.error', function(event, args) {
console.log.apply(console, args); console.log.apply(console, args);
}); });
ipc.on('process.exit', function(pid, rid, code) { ipc.on('process.exit', function(event, code) {
process.exit(code); process.exit(code);
}); });
ipc.on('eval', function(ev, script) { ipc.on('eval', function(event, script) {
ev.returnValue = eval(script); event.returnValue = eval(script);
}); });
ipc.on('echo', function(ev, msg) { ipc.on('echo', function(event, msg) {
ev.returnValue = msg; event.returnValue = msg;
}); });
process.on('uncaughtException', function(error) { process.on('uncaughtException', function(error) {