summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrays/length-set-after-has-sparse.js
blob: 44e662661bf1bfe6c1aed9d53b1f3751383cca14 (plain)
1
2
3
4
5
6
7
8
9
var arr = [];
Object.defineProperty(arr, 4, {
  configurable: true,
  enumerable: false,
  writable: false,
  value: undefined
});
for (var y = 0; y < 2; y++)
  arr.length = 0;