rem: text = scriptError.category + ": "; text += "JavaScript " + (warning ? "Warning: " : "Error: "); text += scriptError.sourceName; text += " line " + scriptError.lineNumber + ", column " + scriptError.columnNumber + ": " + scriptError.message; text += " Source line: " + scriptError.sourceLine;  msgContent = document.createTextNode(text); 
add:  cell.setAttribute("type", warning ? "warning" : "error");  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); 
context: function appendMessage(messageObject){    var c = document.getElementById("console");    var el = document.createElement("message");    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.         */        text = scriptError.category + ": ";        text += "JavaScript " + (warning ? "Warning: " : "Error: ");        text += scriptError.sourceName;        text += " line " + scriptError.lineNumber +            ", column " + scriptError.columnNumber + ": " + scriptError.message;        text += " Source line: " + scriptError.sourceLine;        msgContent = document.createTextNode(text);    } catch (exn) {        dump(exn + '\n');        // QI failed, just try to treat it as an nsIConsoleMessage        text = messageObject.message;        msgContent = document.createTextNode(text);    }    el.appendChild(msgContent);    c.appendChild(el);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2d3e88881719c1e9e07ea75b3c39a90966622977/console.js/buggy/xpfe/components/console/resources/content/console.js