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

function eval(source) {
    offThreadCompileModule(source);
    let m = finishOffThreadModule();
    m.declarationInstantiation();
    return m.evaluation();
}
function runTestCase(testcase) {
    if (testcase() !== true) {}
}
eval(`
  function testcase() {
    function set () {}
  }
  runTestCase(testcase);
`);