summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/bug-1263355-48.js
blob: 149db99878fa0abbc52f5a6111984d13f7d3147a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |jit-test| skip-if: helperThreadCount() === 0

function eval(source) {
    offThreadCompileModuleToStencil(source);
    let stencil = finishOffThreadStencil();
    let m = instantiateModuleStencil(stencil);
    moduleLink(m);
    return moduleEvaluate(m);
}
function runTestCase(testcase) {
    if (testcase() !== true) {}
}
eval(`
  function testcase() {
    function set () {}
  }
  runTestCase(testcase);
`);