Source code

Revision control

Copy as Markdown

Other Tools

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);