[Webkit-unassigned] [Bug 20141] Cannot call pointer to function console.log

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 22 03:53:05 PDT 2014


https://bugs.webkit.org/show_bug.cgi?id=20141


Andrey Adaikin <aandrey at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aandrey at chromium.org




--- Comment #40 from Andrey Adaikin <aandrey at chromium.org>  2014-04-22 03:53:22 PST ---
IMO "console.log" is no more special than, for example, "performance.now", which also does not work being called unbound.

Actually, "performance.now" does seem even more confusing to me, since there is a similar static "Date.now" that works if called unbound. For example, the following code, that did happen in my practice, will not work as expected in WebKit:

var tick = (window.webkitPerformance || window.performance || Date).now;
var start = tick();
//...
var time = tick() - start;


I don't have a strong position whether to allow unbound console.log or not, but at least we'd better be consistent with similar APIs, like performance.now

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list