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

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);
`);