summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/environments/1890252.js
blob: b44ca2253ffeb33f88477e0903d4a9568c2ed29a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// |jit-test| --more-compartments

var threw = false;
try {
    const v2 = evalcx("lazy");
    const o4 = {
        "global": v2,
    };
    o4.envChainObject = v2;
    evaluate("{ let eval = parseInt; eval()}", o4);
} catch (e) {
    threw = true;
    assertEq(e.toString().includes("envChainObject"), true);
}
assertEq(threw, true);