* SUMMARY Give console.time/timeEnd a default label and warnings. Discussion: <https://github.com/whatwg/console/issues/54> > void time(optional DOMString label = "default") > void timeEnd(optional DOMString label = "default") This mostly matches Edge's behavior and is more user friendly. You should be able to use time/timeEnd without an argument and get a default timer. When attempting to start an already started timer, or stop a timer that does not exist, we should provide warnings.
<rdar://problem/26073290>
Created attachment 278027 [details] [PATCH] Proposed Fix
Created attachment 278028 [details] [IMAGE] Example use and warnings
Created attachment 278029 [details] [IMAGE] API Description Update
Comment on attachment 278027 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=278027&action=review > Source/JavaScriptCore/runtime/ConsoleObject.cpp:286 > +static String defaultLabelString(ExecState* exec, JSValue value) This name implies it always returns the "default" string. valueOrDefaultLabelString?
Created attachment 278030 [details] [PATCH] For Landing
Comment on attachment 278030 [details] [PATCH] For Landing Clearing flags on attachment: 278030 Committed r200400: <http://trac.webkit.org/changeset/200400>