Source code

Revision control

Copy as Markdown

Other Tools

/*
* Any copyright is dedicated to the Public Domain.
*/
assertEq(new Function(
"eval('var foo = 915805');" +
"return foo;"
)(),
915805);
assertEq(new Function(
"eval('function foo() {" +
"return 915805;" +
"}');" +
"return foo;"
)()(),
915805);
/******************************************************************************/
if (typeof reportCompare === "function")
reportCompare(true, true);
print("Tests complete");