Re: Function.prototype.toString to discover function dependencies

2010-09-19 Thread Mark S. Miller
On Wed, Sep 15, 2010 at 5:24 PM, James Burke wrote: > First time posting to the es-discuss list: > > Over on the CommonJS list, there is a thread about how to provide a > module format that works in today's browsers. The traditional CommonJS > module format cannot run in the browser via script ta

Re: Function.prototype.toString to discover function dependencies

2010-09-19 Thread Geoffrey Sneddon
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 me

"use strict"; prepended blindly to scripts in the wild

2010-09-19 Thread Andrea Giammarchi
Hi everybody, sorry I could not find a way to inject myself in the original thread. Dmitry has very valid points there and I have not seen a concrete solution to this problem so here I am with a couple of proposals. #1 First Script Rule I do believe, since there is no "use quirks" directive,