Use event.returnValue instead of event.result in atom-shell's code.

event.result is still kept for backward compatible.
This commit is contained in:
Cheng Zhao 2013-09-20 21:37:47 +08:00
parent b225a59a15
commit a9c824eba1
2 changed files with 18 additions and 18 deletions

View file

@ -23,7 +23,7 @@ ipc.on('process.exit', function(pid, rid, code) {
});
ipc.on('eval', function(ev, pid, rid, script) {
ev.result = eval(script);
ev.returnValue = eval(script);
});
process.on('uncaughtException', function() {