summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrays/length-set-after-define-nonconfigurable.js
blob: 38415405653b596a3b0ca8abc29c3e941d828149 (plain)
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;