Can someone confirm/reject that by spec (http://es5.github.com/#x15.4.4.12):

// sparse array ;D
var a=[0];
a[2]=2;

// the resulting arrays length should be 1 and not 2
console.log(a.splice(0, 2).length);

I'm seeing `2` in latest Chrome/FF.

Thanks,
-JDD
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to