summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/parser/bug1661454.js
blob: ca7792f4bcffa316d00fd3a8e02bfa0040052cb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| skip-if: !('oomTest' in this)

function oomTestEval(lfVarx) {
  oomTest(() => eval(lfVarx));
}

oomTestEval(``);
oomTestEval(`
  {
    function bug1661454() {  }
  }
`);