summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dom/console-log-stack-overflow.html
blob: b738d67d32c9544de56c7443b7b800aa238320fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body onload='load(1)'>

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

// Force a stack-overflow in the console.log
function load(n) {
    try {
      load(n+1);
    } catch(e) {
      try {
        console.log();
      } catch (g) {
      }
    }
}
</script>
</body>
</html>