JS Test Harness: Insert the stylesheet dynamically
[WebKit-https.git] / LayoutTests / fast / dom / error-to-string-stack-overflow.html
1 <html>
2 <head>
3 <script src="../js/resources/js-test-pre.js"></script>
4 </head>
5 <body onload='load()'>
6
7 <script>
8 description("Regression test for https://bugs.webkit.org/show_bug.cgi?id=30774.  This test passes if it doesn't crash.");
9
10 // Force string conversion of error objects to throw exceptions.
11 Error.prototype.toString = function() { throw 0; }
12
13 // Force a stack-overflow in the onload handler.
14 function load() { load(); }
15
16 var successfullyParsed = true;
17 </script>
18 <script src="../js/resources/js-test-post.js"></script>
19 </body>
20 </html>