DevTools: align console %o optimal formatting specifier with spec
The console spec says that the %o specifier should produce "optimally useful formatting" as opposed to the %O "generic JavaScript object formatting". To make this distinction clearer and align log() to %o and dir() to %O, this CL will format arrays/objects with previews when using %o. Please see crbug for screenshot. Bug: 751850 Change-Id: I927e1c34667f1d11bc13e98a86d38419b7012940 Reviewed-on: https://chromium-review.googlesource.com/607576 Commit-Queue: Erik Luo <luoe@chromium.org> Reviewed-by:Dmitry Gozman <dgozman@chromium.org> Cr-Commit-Position: refs/heads/master@{#505333}
Showing
Please register or sign in to comment