Array#splice sparse array spec question.

John-David Dalton john.david.dalton at
Mon Apr 9 08:19:48 PDT 2012

Can someone confirm/reject that by spec (

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

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


More information about the es-discuss mailing list