Function()

Garrett Smith dhtmlkitchen at gmail.com
Sat Sep 6 16:51:48 PDT 2008


On Sat, Sep 6, 2008 at 3:08 PM, David-Sarah Hopwood
<david.hopwood at industrial-designers.co.uk> wrote:
> Garrett Smith wrote:
>> I have a question about the Function constructor algorithm:
>>
>> 1. Let P be the empty string.
>> 2. If no arguments were given, let body be the empty string and go to step 13.
>>
>> Would it be OK to just use:- [...]
>
> This is an "as if" description of the algorithm. But I don't see that the
> case of no arguments is worth optimizing anyway.
>

It would be used for creating a function with no body.

Garrett
> --
> David-Sarah Hopwood
> _______________________________________________
> Es-discuss mailing list
> Es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>


More information about the Es-discuss mailing list