summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1237564.js
blob: a67174c757783c9c5d65ad57fd0ca6d18439fc84 (plain)
1
2
3
4
5
6
7
8
// |jit-test| error:ReferenceError: can't access lexical
try {
    evaluate("let x = (() => { throw 3 })();");
} catch(e) {
    assertEq(e, 3);
}
Object.defineProperty(this, "x", {});
(function() { x = 3; })();