rem: if (!(aArg instanceof String)) { 
add:  if (!(aArg instanceof String) && !(typeof(aArg) == "string")) { 
context: function LOG(aArg) {    var prefB = Cc["@mozilla.org/preferences-service;1"].                getService(Ci.nsIPrefBranch);    var shouldLog = false;    try {        shouldLog = prefB.getBoolPref("calendar.debug.log");    } catch(ex) {}    if (!shouldLog) {        return;    }    ASSERT(aArg, "Bad log argument.", false);    var string;    if (!(aArg instanceof String)) {        var string = "Logging object...\n";        for (var prop in aArg) {            string += prop + ': ' + aArg[prop] + '\n';        }        string += "End object\n";    } else {        string = aArg;    }     dump(string + '\n');    var consoleSvc = Cc["@mozilla.org/consoleservice;1"].                     getService(Ci.nsIConsoleService);    consoleSvc.logStringMessage(string);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/cc4f847931de6dde99f588b982e327b781631a58/calUtils.js/buggy/calendar/base/src/calUtils.js