[Bug 20731] Sequence algorithm seems incorrect

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20731

--- 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