Debian Codegraph @

js/src/tests/non262/lexical-environment/var-in-catch-body-annex-b-eval-for-of.js

raw
1 // |reftest| skip-if(!xulRuntime.shell)
2
3 evaluate(`
4 try { throw null; } catch (e) { eval("for (var e of []) {}") }
5 `);
6
7 new Function(`
8 try { throw null; } catch (e) { eval("for (var e of []) {}") }
9 `)();
10
11 if (typeof reportCompare === "function")
12 reportCompare(true, true);