• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<script>
2    function test2() {
3        var y = 6;
4        y += 3;
5        return y;
6    }
7
8    function test() {
9        var x = 5;
10        eval("test2()");
11        x += 6;
12        return x;
13    }
14</script>
15<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=19038">Bug 19038: Crash in JavaScriptDebugServer::returnEvent when inspecting an attached Inspector</a>.</p>
16<p>To test, open and attach the Inspector's debugger, then click the button below. If you don't crash, you have passed the test.</p>
17<button onclick="test()">click me</button>
18