summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/strict-eval-loop-error.js
blob: f09ad440282cbccbadbb200d6d991e52b962c7c8 (plain)
1
2
3
var COUNT = 9;
eval("'use strict'; for (let j = 0; j < COUNT; j++); try { x; throw new Error(); } catch (e) { if (!(e instanceof ReferenceError)) throw e; }");
assertEq(typeof j, "undefined");