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

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:03abd81522a3
1 /*
2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/licenses/publicdomain/
4 * Contributor: Jason Orendorff
5 */
6
7 function f(x) { return 1 + "" + (x + 1); }
8 reportCompare("12", f(1), "");
9 var g = eval("(" + f + ")");
10 reportCompare("12", g(1), "");

mercurial