js/src/tests/js1_8_5/regress/regress-541455.js

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:d4cce9270dcd
1 /*
2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/licenses/publicdomain/
4 * Contributors: Gary Kwong and Jason Orendorff
5 */
6
7 function f(x) { return eval('"mumble"; x + 42'); }
8
9 var expect = true;
10 var actual = ('' + f).indexOf("mumble") >= 0;
11
12 reportCompare(expect, actual, "unknown directive in eval code wrongly dropped");

mercurial