Skip to content

Commit 8934e57

Browse files
author
homyakov
committed
Functional test with eval()
1 parent fbd0bb3 commit 8934e57

1 file changed

Lines changed: 23 additions & 23 deletions

File tree

‎test/functional/testcase1.html‎

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
4-
<title>No-options test</title>
5-
<script type="text/javascript" src="../../stacktrace.js"></script>
6-
<script type="text/javascript" src="testCommon.js"></script>
7-
</head>
8-
<body>
9-
<div id="output"></div>
10-
<script type="text/javascript">
11-
function bar(n) {
12-
if (n < 2) {
13-
printTrace(printStackTrace());
14-
return;
15-
}
16-
bar(n - 1);
17-
}
3+
<head>
4+
<title>No-options test</title>
5+
<script type="text/javascript" src="../../stacktrace.js"></script>
6+
<script type="text/javascript" src="testCommon.js"></script>
7+
</head>
8+
<body>
9+
<div id="output"></div>
10+
<script type="text/javascript">
11+
function bar(n) {
12+
if (n < 2) {
13+
printTrace(printStackTrace());
14+
return;
15+
}
16+
bar(n - 1);
17+
}
1818

19-
function foo() {
20-
bar(2);
21-
}
22-
23-
var expected=["bar(1)", "bar(2)", "foo()"];
24-
foo();
25-
</script>
26-
</body>
19+
function foo() {
20+
eval("bar(2)");
21+
}
22+
23+
var expected = ["bar(1)", "bar(2)", "foo()", "foo()"];
24+
foo();
25+
</script>
26+
</body>
2727
</html>

0 commit comments

Comments
 (0)