summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/lexical-environment/var-in-catch-body-annex-b-eval-for-of.js
blob: b433b68b6eda4c1a13e5480f323af1d185cbdf02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |reftest| skip-if(!xulRuntime.shell)

evaluate(`
    try { throw null; } catch (e) { eval("for (var e of []) {}") }
`);

new Function(`
    try { throw null; } catch (e) { eval("for (var e of []) {}") }
`)();

if (typeof reportCompare === "function")
    reportCompare(true, true);