summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/gc/bug-1574877.js
blob: 09b5b9e6b02326856027bff346b8401a9a2e2f83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function parseModule(source) {
    offThreadCompileModuleToStencil(source);
    var stencil = finishOffThreadStencil();
    return instantiateModuleStencil(stencil);
}
function loadFile(lfVarx) {
  oomTest(function() {
      parseModule(lfVarx);
  });
}
loadFile(`
  expect = new class prototype extends Object {
    a43 = function () {}
  }
`);