Source code
Revision control
Copy as Markdown
Other Tools
/*
* Any copyright is dedicated to the Public Domain.
* Contributors: Gary Kwong and Jason Orendorff
*/
function f(x) { return eval('"mumble"; x + 42'); }
var expect = true;
var actual = ('' + f).indexOf("mumble") >= 0;
reportCompare(expect, actual, "unknown directive in eval code wrongly dropped");