phantomjs/main.js
function(arg) {
  var args = Array.isArray(arg) ? arg : Array.apply(null, arguments);
  lastMsgDate = new Date();
  fs.write(tempFile, JSON.stringify(args) + '\n', 'a');
}
function(arg) {
  var args = Array.isArray(arg) ? arg : Array.apply(null, arguments);
  lastMsgDate = new Date();
  fs.write(tempFile, JSON.stringify(args) + '\n', 'a');
}
function ( arg ) { var args = Array . isArray ( arg ) ? arg : Array . apply ( null , arguments ) ; lastMsgDate = new Date ( ) ; fs . write ( tempFile , JSON . stringify ( args ) + '\n' , 'a' ) ; }
Send messages to the parent by appending to temp file
Send messages to the parent by appending to temp file