summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug806522.js
blob: 1507276c1a1ea7ac40b6e1ce69f75a7e9cb9e7f5 (plain)
1
2
3
4
5
6
7
load(libdir + "asserts.js");

var g = evalcx("lazy");
assertThrowsInstanceOf(
    () => evaluate("{ let eval; eval()}", {global: g}),
    g.TypeError); // eval is not a function
assertEq(evaluate("{ let eval = parseInt; eval()}", {global: g}), NaN);