Commit 462c5cf2 authored by aroben@apple.com's avatar aroben@apple.com

Fix Bug 18888: REGRESSION (r32731): console.log always prints "undefined"

        Reviewed by Tim Hatcher.

        Tested by pre-existing
        manual-tests/inspector/console-log-formatting.html.

        * page/inspector/Console.js:
        (WebInspector.ConsoleMessage.prototype._format): Changed to explicitly
        wrap Console._format instead of using bind to do it. Using bind was
        causing us to pass plainText in as the first parameter instead of as
        the second.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33454 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7d6c0d0e
2008-05-14 Adam Roben <aroben@apple.com>
Fix Bug 18888: REGRESSION (r32731): console.log always prints
"undefined"
Reviewed by Tim Hatcher.
Tested by pre-existing
manual-tests/inspector/console-log-formatting.html.
* page/inspector/Console.js:
(WebInspector.ConsoleMessage.prototype._format): Changed to explicitly
wrap Console._format instead of using bind to do it. Using bind was
causing us to pass plainText in as the first parameter instead of as
the second.
2008-05-14 Timothy Hatcher <timothy@apple.com>
Fixes the bug where stepping out of a function would show the wrong
......@@ -469,7 +469,10 @@ WebInspector.ConsoleMessage.prototype = {
if (!parameters.length)
return formattedResult;
var formatForConsole = WebInspector.console._format.bind(WebInspector.console, plainText);
function formatForConsole(obj)
{
return WebInspector.console._format(obj, plainText);
}
if (Object.type(parameters[0], InspectorController.inspectedWindow()) === "string") {
var formatters = {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment