rem: netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); this.jsConsole = Components.classes["@mozilla.org/consoleservice;1"].getService(Components.interfaces.nsIConsoleService); this.scriptError = Components.classes["@mozilla.org/scripterror;1"].createInstance(Components.interfaces.nsIScriptError); 
add: try { netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); this.jsConsole = Components.classes["@mozilla.org/consoleservice;1"].getService(Components.interfaces.nsIConsoleService); this.scriptError = Components.classes["@mozilla.org/scripterror;1"].createInstance(Components.interfaces.nsIScriptError); } catch (e) { log4jsLogger.error(e); } 
context: Log4js.MozillaJSConsoleAppender = function() {	this.layout = new Log4js.SimpleLayout();	netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");	this.jsConsole = Components.classes["@mozilla.org/consoleservice;1"].getService(Components.interfaces.nsIConsoleService);	this.scriptError = Components.classes["@mozilla.org/scripterror;1"].createInstance(Components.interfaces.nsIScriptError);};
meta: 2141	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2141/b0c58f09c3bf106450447263059885d62b3f736a/log4js.js/buggy/log4js/src/main/js/log4js.js