We can make our number utilities use this to get proper localization for numbers.
<rdar://problem/23815589>
Support landed in http://trac.webkit.org/changeset/193493.
<rdar://problem/6869032>
This won't do anything (formatting or locale-specific formatting) until Intl.NumberFormat is implemented.
Created attachment 276496 [details] [Patch] Proposed Fix
Comment on attachment 276496 [details] [Patch] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=276496&action=review > Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js:605 > + let value = typeof obj.value === "number" ? obj.value : obj.description; > + return String.standardFormatters.f(value, token); We should have a test for this given it is a behavior change. For instance, this affects console.log("%.3f", Math.PI).
(In reply to comment #6) > Comment on attachment 276496 [details] > [Patch] Proposed Fix > > View in context: > https://bugs.webkit.org/attachment.cgi?id=276496&action=review > > > Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js:605 > > + let value = typeof obj.value === "number" ? obj.value : obj.description; > > + return String.standardFormatters.f(value, token); > > We should have a test for this given it is a behavior change. For instance, > this affects console.log("%.3f", Math.PI). I looked at adding console tests, but wasn't sure how to go about it since message formatting is done at the view level.
Comment on attachment 276496 [details] [Patch] Proposed Fix Clearing flags on attachment: 276496 Committed r199635: <http://trac.webkit.org/changeset/199635>
All reviewed patches have been landed. Closing bug.