summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/dictionary-add-prop-oom.js
blob: e393cfca6b2be09d0aa6f2db99c5779d132408e4 (plain)
1
2
3
4
5
6
7
8
9
// |jit-test| skip-if: !('oomTest' in this)
enableShapeConsistencyChecks();
oomTest(() => {
  var obj = {a: 1, b: 2, c: 3};
  delete obj.a;
  for (var i = 0; i < 100; i++) {
    obj["x" + i] = i;
  }
});