Add spec for ipc.sendSync.

This commit is contained in:
Cheng Zhao 2013-09-22 12:06:41 +08:00
parent 761b9d22c8
commit 68bdad9a23
2 changed files with 10 additions and 1 deletions

View file

@ -26,6 +26,10 @@ ipc.on('eval', function(ev, pid, rid, script) {
ev.returnValue = eval(script);
});
ipc.on('echo', function(ev, pid, rid, msg) {
ev.returnValue = msg;
});
process.on('uncaughtException', function() {
window.openDevTools();
});