function postMessage(msg) {
        if (currentModule) {
            currentModule.postMessage(msg);
        }
    }
Send a message to the tern module - if the module is being initialized,
the message will not be posted until initialization is complete