1 2 3 4 5 6 7
var arr = [1]; Object.defineProperty(arr, 1, { value: undefined, configurable: false }); // no particular reason for 9 -- just enough to trigger property-cache code, // maybe start JITting a little for (var y = 0; y < 9; y++) arr.length = 1;