rem: if(num_errors>200) { deleteOne(); } 
add: if(num_errors>250) { deleteOne(); } 
context: function appendMessage(messageObject){	if(messageObject.message == "__CLEAR__") {return;}    var c = document.getElementById("consoleTreeChildren");    var item = document.createElement("treeitem");    var row = document.createElement("treerow");    var cell = document.createElement("treecell");    cell.setAttribute("class", "treecell-error");    var msgContent;    var text;    try {        // Try to QI it to a script error to get more info.        var nsIScriptError = Components.interfaces.nsIScriptError;        var scriptError =            messageObject.QueryInterface(nsIScriptError);        // Is this error actually just a non-fatal warning?        var warning = scriptError.flags & nsIScriptError.warningFlag != 0;        // Is this error or warning a result of JavaScript's strict mode,        // and therefore something we might decide to be lenient about?        var strict = scriptError.flags & nsIScriptError.strictFlag != 0;        // If true, this error led to the creation of a (catchable!) javascript        // exception, and should probably be ignored.        // This is worth checking, as I'm not sure how the behavior falls        // out.  Does an uncaught exception result in this flag being raised?        var isexn = scriptError.flags & nsIScriptError.exceptionFlag != 0;        /*         * It'd be nice to do something graphical with our column information,         * like what the old js console did, and the js shell does:         * js> var scooby = "I am an unterminated string!         * 1: unterminated string literal:         * 1: var scooby = "I am an unterminated string!         * 1: .............^         *         * But for now, I'm just pushing it out the door.         */                 cell.setAttribute("type", warning ? "warning" : "error");        // XXX localize        cell.setAttribute("typetext", warning ? "Warning: " : "Error: ");        cell.setAttribute("url", scriptError.sourceName);        cell.setAttribute("line", scriptError.lineNumber);        cell.setAttribute("col", scriptError.columnNumber);        cell.setAttribute("msg", scriptError.message);        cell.setAttribute("error", scriptError.sourceLine);    } catch (exn) {        dump(exn + '\n');        // QI failed, just try to treat it as an nsIConsoleMessage        text = messageObject.message;        cell.setAttribute("value", text);    }    row.appendChild(cell);    item.appendChild(row);    c.appendChild(item);	num_errors++;	//Deletes top error if error console is long	if(num_errors>200) { deleteOne(); }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/05b1410214f18f28e3db9d1e41b8d8f268887244/console.js/clean/xpfe/components/console/resources/content/console.js