blob: 32afe4f30dd31cc07aa4fe89858046ed7d5dd4f8 [file] [log] [blame]
<html>
<head>
<script src="../../inspector/inspector-test.js"></script>
<script src="../../inspector/console-test.js"></script>
<script>
alert({toString: function() { throw "Exception in toString()."; }});
</script>
<script>
function test() {
TestRunner.reloadPage(function() {
ConsoleTestRunner.dumpConsoleMessages();
TestRunner.completeTest();
});
}
</script>
</head>
<body onload="runTest()">
<p>
Test that browser won't crash if inspector is opened for a page that fails to convert
alert() argument to string. The test passes if it doesn't crash.
<a href="https://bugs.webkit.org/show_bug.cgi?id=60541">Bug 60541</a>
</p>
</body>
</html>