Function.prototype.toString to discover function dependencies

Geoffrey Sneddon gsneddon at opera.com
Sun Sep 19 10:40:57 PDT 2010


On 16/09/10 04:04, Erik Arvidsson wrote:
> As far as I remember some Opera mobile versions don't return the code
> in Function.prototype.toString.
>
> A lot of JS frameworks today use the Function.prototype.toString to
> find references to super/base but they do fallback on slower paths if
> the toString method does not provide the code of the function.

FWIW, there should be no difference between Desktop and Mobile with Carakan.

-- 
Geoffrey Sneddon — Opera Software
<http://gsnedders.com>
<http://opera.com>


More information about the es-discuss mailing list