Jason Orendorff jason.orendorff at
Mon Sep 8 09:08:29 PDT 2008

On Sat, Sep 6, 2008 at 1:05 AM, Garrett Smith <dhtmlkitchen at> wrote:
> The resulting function would be indistinguishable. The performance
> would be potentially faster (no parsing "" to create a Function).
> Firefox is very slow with Function constructor.
> var slow = Function();
> var fast = function(){};

Garrett, this post is really baffling.  :)

What makes you think the ES3 specification is to blame for the
slowness you're seeing?  For all I know, our implementation pre-dates
the spec.  ;-)

If it's a problem that "Firefox is very slow", I heartily encourage
you to file a bug at  Patches are always
welcome.  SpiderMonkey's Function constructor is implemented at:


More information about the Es-discuss mailing list