Re: Arrays in WebIDL aren't making sense to me so far

Boris Zbarsky:
>> var a1 = myB.range(1, 5);
>> assert(a1[0] == 1);
>> myB.incrementAll(a);
>
> This would create a copy of "a" and pass that to myB, as currently specced.

Ah, that is definitely a bug.  The conversion steps in #es-array need to 
check if the ECMAScript value is a reference to a platform array object 
of the right type first, and just return that if it is.

Received on Tuesday, 3 April 2012 00:38:50 UTC