W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

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

From: Cameron McCormack <cam@mcc.id.au>
Date: Tue, 03 Apr 2012 10:38:17 +1000
Message-ID: <4F7A4679.3020203@mcc.id.au>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: "public-script-coord@w3.org" <public-script-coord@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:14:06 UTC