summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/inspector/console/console-log-toString-object.html
blob: 9986894c7bd103e88fdbb5d14644f999c23ca98e (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
<html>
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/console-test.js"></script>
<script>

console.log({toString:{}});

function test()
{
    InspectorTest.reloadPage(function() {
        InspectorTest.dumpConsoleMessages();
        InspectorTest.completeTest();
    });
}
</script>
</head>
<body onload="runTest()">
<p>
Tests that passing an object which throws on string conversion into console.log won't crash
inspected Page. The test passes if it doesn't crash.
<a href="https://bugs.webkit.org/show_bug.cgi?id=57557">Bug 57557</a>
</p>
</body>
</html>