On Apr 10, 2013, at 3:02 PM, Victor Costan <[email protected]> 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

_______________________________________________
webkit-dev mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to