blob: 981abf2d04ff69ff723aa68933c657ec625f841e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/licenses/publicdomain/
*/
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");
|