[Webkit-unassigned] [Bug 181576] Console format specifiers on Symbols
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Jan 12 11:17:16 PST 2018
https://bugs.webkit.org/show_bug.cgi?id=181576
--- Comment #2 from Joseph Pecoraro <joepeck at webkit.org> ---
I'm not sure how much of this we intend to do.
1. I don't want to change `console.dir` to take a format string.
2. I think ultimately we should drop `console.dirxml` unless someone can actually define its primary use case. I'd guess that developers don't use it, or that its now irrelevant in tools (in which case, lets just map it to `console.dir`.
3. WebKit has always never performed the format string operations in the page's context. It serializes all the arguments, sends them to the developer tools, and the tools then apply the format string. We do this for one obvious reason: this allows the performance of console operations to be very fast if Web Inspector is not open.
Likewise, changing this behavior to suddenly throw a type error could be a backwards incompatible change. It sounds like existing code in pages that currently never throws an exception could suddenly throw an exception even if the tools are not open. That doesn't sound like something we'd want to do.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180112/143efa38/attachment.html>
More information about the webkit-unassigned
mailing list