summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/delete-integer-nonid.js
blob: e016227cbab531ae3aae85c6fd28022347ba8e12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var JSID_INT_MIN = -(1 << 30);
var JSID_INT_MAX = (1 << 30) - 1;

var o = {};


for (var i = 0; i < 10; i++)
  delete o[JSID_INT_MIN - 1];

for (var i = 0; i < 10; i++)
  delete o[JSID_INT_MIN];

for (var i = 0; i < 10; i++)
  delete o[JSID_INT_MIN + 1];


for (var i = 0; i < 10; i++)
  delete o[JSID_INT_MAX - 1];

for (var i = 0; i < 10; i++)
  delete o[JSID_INT_MAX];

for (var i = 0; i < 10; i++)
  delete o[JSID_INT_MAX + 1];