summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dom/error-to-string-stack-overflow.html
blob: 038006748a4f1f8d6a098d8e85f04ded37395ea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body onload='load()'>

<script>
description("Regression test for https://bugs.webkit.org/show_bug.cgi?id=30774.  This test passes if it doesn't crash.");

// Force string conversion of error objects to throw exceptions.
Error.prototype.toString = function() { throw 0; }

// Force a stack-overflow in the onload handler.
function load() { load(); }
</script>
</body>
</html>