blob: 9dc9a0ee36c5b2cd2aaa210bb8fdd742d72b9241 (
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
26
27
28
29
30
31
32
33
34
|
<html>
<head>
<script>
function print(message) {
var paragraph = document.createElement("p");
paragraph.appendChild(document.createTextNode(message));
document.getElementById("console").appendChild(paragraph);
}
function test() {
if (window.testRunner) {
testRunner.dumpAsText();
}
var method = "console.";
for (var i = 0; i < 6000; i++)
method += "a";
method += "()";
try {
eval(method);
}
catch (e) {}
print("success: no crash.");
}
</script>
</head>
<body onload="test();">
<p>This test checks for a regression against <i>rdar://problem/4370397 Missing return statement in JSMethodNameToObjcMethodName</i>.</p>
<p>If the test passes, you will see a "success" message below.</p>
<hr>
<div id='console'/>
</body>
</html>
|