[webkit-dev] Adding LenientThis to WebKitIDL

Maciej Stachowiak mjs at apple.com
Wed Apr 10 16:53:18 PDT 2013


On Apr 10, 2013, at 3:02 PM, Victor Costan <costan at gmail.com> wrote:

> Dear WebKit devs,
> 
> 
> I would like to make console.log and related functions work without
> requiring that "this" is set to the console object. This would make
> debugging from Web Inspector easier, because console.log could be
> passed directly to functions that require a callback, instead of
> having to pass function(arg) { console.log(arg); }

You can also use Function.bind for this purpose - is that to verbose?

Regards,
Maciej

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20130410/58fd0f1b/attachment.html>


More information about the webkit-dev mailing list