]> khamidou — GitHub mirrors - electron.git/commitdiff
Fix printing in specs.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 28 Apr 2014 03:55:56 +0000 (03:55 +0000)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 28 Apr 2014 03:55:56 +0000 (03:55 +0000)
spec/static/main.js

index 5d11ed04ffa5cb45b8672eb210c99e78c1e51023..af22bb5c1af72893b6bdc7dd3a806c1bc4f7f0e2 100644 (file)
@@ -12,24 +12,24 @@ ipc.on('message', function(event, 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);
 });
 
-ipc.on('console.error', function(pid, rid, args) {
+ipc.on('console.error', function(event, args) {
   console.log.apply(console, args);
 });
 
-ipc.on('process.exit', function(pid, rid, code) {
+ipc.on('process.exit', function(event, code) {
   process.exit(code);
 });
 
-ipc.on('eval', function(ev, script) {
-  ev.returnValue = eval(script);
+ipc.on('eval', function(event, script) {
+  event.returnValue = eval(script);
 });
 
-ipc.on('echo', function(ev, msg) {
-  ev.returnValue = msg;
+ipc.on('echo', function(event, msg) {
+  event.returnValue = msg;
 });
 
 process.on('uncaughtException', function(error) {