summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1574877.js
blob: 4007b8f4f4bc852a12463b2da534de0987599691 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| skip-if: !('oomTest' in this)

function parseModule(source) {
    offThreadCompileModule(source);
    return finishOffThreadModule();
}
function loadFile(lfVarx) {
  oomTest(function() {
      parseModule(lfVarx);
  });
}
loadFile(`
  expect = new class prototype extends Object {
    a43 = function () {}
  }
`);