OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.js"></script> |
4 </head> | 4 </head> |
5 <body onload='load()'> | 5 <body onload='load()'> |
6 | 6 |
7 <script> | 7 <script> |
8 description("Regression test for https://bugs.webkit.org/show_bug.cgi?id=30774.
This test passes if it doesn't crash."); | 8 description("Regression test for https://bugs.webkit.org/show_bug.cgi?id=30774.
This test passes if it doesn't crash."); |
9 | 9 |
10 // Force string conversion of error objects to throw exceptions. | 10 // Force string conversion of error objects to throw exceptions. |
11 Error.prototype.toString = function() { throw 0; } | 11 Error.prototype.toString = function() { throw 0; } |
12 | 12 |
13 // Force a stack-overflow in the onload handler. | 13 // Force a stack-overflow in the onload handler. |
14 function load() { load(); } | 14 function load() { load(); } |
15 </script> | 15 </script> |
16 <script src="../js/resources/js-test-post.js"></script> | |
17 </body> | 16 </body> |
18 </html> | 17 </html> |
OLD | NEW |