Array Generics and null

Dean Edwards dean at edwards.name
Mon Mar 24 11:23:53 PDT 2008


Mark S. Miller wrote:
> On Mon, Mar 24, 2008 at 10:31 AM, Dean Edwards <dean at edwards.name> wrote:
>>  It seems we have three choices for Array.forEach(null)
>>
>>  1) Do nothing
>>  2) Throw an exception
>>  3) Use the current object and iterate that
> 
> By "current object" do you mean the global object?

I meant the object that was used by function.call(null). Most of the 
time that is the global object. I'm not sure how "this propagation" 
affects that.

-dean



More information about the Es4-discuss mailing list