rem: var e = null; if (e) { var m = (e.message?e.message:e); var r = (typeof(e.result)!='undefined'?'0x'+e.result.toString(16):''); var l = (typeof(e.location)!='undefined'?e.location:''); 
add: if (e && typeof(e)=='object') { var m, n, r, l, ln, fn = ""; try { r  = e.result; m  = e.message; fn = e.filename; l  = e.location; ln = l.lineNumber; } catch (e) {} 
context: function jslibError(e, aType, aResults, aCaller) {  if (!JS_LIB_ERROR)    return void(null);  if (arguments.length==0)    return (dump("JS_LIB_ERROR=ON\n"));  var errMsg="ERROR: "+(aCaller?"in "+aCaller:"")+"  "+aType+"\n";  var e = null;  if (e) {    var m = (e.message?e.message:e);    var r = (typeof(e.result)!='undefined'?'0x'+e.result.toString(16):'');    var l = (typeof(e.location)!='undefined'?e.location:'');    errMsg+="Name:              "+e.name+"\n"       +            "Message:           "+m+"\n"            +            "Result:            "+r+"\n"            +            "Location:          "+l+"\n";  }  if (aResults)    errMsg+="NS_ERROR_NUMBER:   "+aResults+"\n";  if (JS_LIB_ERROR_ALERT)    alert(errMsg);  errMsg = "\n-----======[ ERROR ]=====-----\n" + errMsg;  errMsg += "------------------------------\n\n";  return (dump(errMsg));}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/ad31f8ed11639845cff55b2a989a1a6243a89a9b/jslib.js/buggy/calendar/resources/content/jslib/jslib.js