W3C home > Mailing lists > Public > public-script-coord@w3.org > January to March 2013

[Bug 20731] Sequence algorithm seems incorrect

From: <bugzilla@jessica.w3.org>
Date: Tue, 22 Jan 2013 16:49:45 +0000
To: public-script-coord@w3.org
Message-ID: <bug-20731-3890-nqb6iWpjam@http.www.w3.org/Bugs/Public/>

--- Comment #5 from Marcos Caceres <w3c@marcosc.com> ---
Just one more minor thing (which may be JS implementation specific)... calling
new Array(-1) causes Array to throw a "RangeError: Invalid array length", as
happens in the following case: 

length = undefined; 

//Let n be the result of calling ToUint32(length).
n = ToUint32(length); //0

//Initialize S[0..n−1] to be an IDL sequence with elements of type T,
//where each element is uninitialized.
S = new Array(n - 1);

Does that matter?

You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 22 January 2013 16:49:46 UTC

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