runtime_library/callback-handler.js
/**
   *  Replace the global postMessage and onmessage functions
   *  with the replacements defined here that handle callbacks as well.
   *
   *  Note that addCallbacksToIPCMessaging is invoked at the bottom of this file.
   */
Replace the global postMessage and onmessage functions
with the replacements defined here that handle callbacks as well.

Note that addCallbacksToIPCMessaging is invoked at the bottom of this file.
Replace the global postMessage and onmessage functions with the replacements defined here that handle callbacks as well . Note that addCallbacksToIPCMessaging is invoked at the bottom of this file .
function addCallbacksToIPCMessaging() {
    var callback_handler = new CallbackHandler(context);
    context.postMessage = callback_handler.postMessageWithCallback.bind(callback_handler);
    context.onmessage   = callback_handler.onmessageCallbackHandler.bind(callback_handler);
  }
function addCallbacksToIPCMessaging ( ) { var callback_handler = new CallbackHandler ( context ) ; context . postMessage = callback_handler . postMessageWithCallback . bind ( callback_handler ) ; context . onmessage = callback_handler . onmessageCallbackHandler . bind ( callback_handler ) ; }
Replace the global postMessage and onmessage functions
  with the replacements defined here that handle callbacks as well.
Replace the global postMessage and onmessage functions with the replacements defined here that handle callbacks as well .
// Overwrite global methods