rem: throw { summary: "Locale-correct date formatting failed to initalize", exception: ex }; 
add: dd("Locale-correct date formatting failed to initalize: " + ex); 
context: function initStatic(){    CIRCServer.prototype.VERSION_RPLY =        getMsg(MSG_VERSION_REPLY, [__cz_version, navigator.userAgent]);        client.mainWindow = window;        try    {        var io = Components.classes['@mozilla.org/network/io-service;1'];        client.iosvc = io.getService(Components.interfaces.nsIIOService);    }    catch (ex)    {        throw { summary: "IO service failed to initalize", exception: ex };    }        try    {        const nsISound = Components.interfaces.nsISound;        client.sound =            Components.classes["@mozilla.org/sound;1"].createInstance(nsISound);                client.soundList = new Object();    }    catch (ex)    {        throw { summary: "Sound failed to initalize", exception: ex };    }        try    {        const nsIGlobalHistory = Components.interfaces.nsIGlobalHistory;        const GHIST_CONTRACTID = "@mozilla.org/browser/global-history;1";        client.globalHistory =            Components.classes[GHIST_CONTRACTID].getService(nsIGlobalHistory);    }    catch (ex)    {        throw { summary: "Global History failed to initalize", exception: ex };    }        try    {        const nsISDateFormat = Components.interfaces.nsIScriptableDateFormat;        const DTFMT_CID = "@mozilla.org/intl/scriptabledateformat;1";        client.dtFormatter =             Components.classes[DTFMT_CID].createInstance(nsISDateFormat);                // Mmmm, fun. This ONLY affects the ChatZilla window, don't worry!        Date.prototype.toStringInt = Date.prototype.toString;        Date.prototype.toString = function() {            var dtf = client.dtFormatter;            return dtf.FormatDateTime("", dtf.dateFormatLong,                                       dtf.timeFormatSeconds,                                       this.getFullYear(), this.getMonth() + 1,                                       this.getDate(), this.getHours(),                                       this.getMinutes(), this.getSeconds()                                     );        }    }    catch (ex)    {        throw { summary: "Locale-correct date formatting failed to initalize", exception: ex };    }        multilineInputMode(client.prefs["multiline"]);    if (client.prefs["showModeSymbols"])        setListMode("symbol");    else        setListMode("graphic");    setDebugMode(client.prefs["debugMode"]);        var ary = navigator.userAgent.match (/(rv:[^;)\s]+).*?Gecko\/(\d+)/);    if (ary)    {        client.userAgent = "ChatZilla " + __cz_version + " [Mozilla " +             ary[1] + "/" + ary[2] + "]";    }    else    {        client.userAgent = "ChatZilla " + __cz_version + " [" +             navigator.userAgent + "]";    }    client.statusBar = new Object();        client.statusBar["server-nick"] = document.getElementById ("server-nick");    client.statusElement = document.getElementById ("status-text");    client.defaultStatus = MSG_DEFAULT_STATUS;    client.lineEnd = "\n";    if (navigator.platform.search(/win/i) >= 0)        client.lineEnd = "\r\n";        client.logFile = null;    setInterval("onNotifyTimeout()", client.NOTIFY_TIMEOUT);        client.defaultCompletion = client.COMMAND_CHAR + "help ";    client.deck = document.getElementById('output-deck');}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d84f82bf3e11bd09e70e1036662b0018f8834acc/static.js/clean/extensions/irc/xul/content/static.js