OLD | NEW |
1 <script src="../../http/tests/inspector/inspector-test.js"></script> | 1 <script src="../../http/tests/inspector/inspector-test.js"></script> |
2 <script src="../../http/tests/inspector/debugger-test.js"></script> | 2 <script src="../../http/tests/inspector/debugger-test.js"></script> |
3 | 3 |
4 <script> | 4 <script> |
5 var closures = []; | 5 var closures = []; |
6 function makeClosure() { | 6 function makeClosure() { |
7 var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10; // Make a lot of potentially ca
ptured variables. | 7 var v1, v2, v3, v4, v5, v6, v7, v8, v9, v10; // Make a lot of potentially ca
ptured variables. |
8 return function () { | 8 return function () { |
9 var x = v1; // But only capture one in optimizing compiles. | 9 var x = v1; // But only capture one in optimizing compiles. |
10 return x; | 10 return x; |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 function step2(sourceFrame) | 34 function step2(sourceFrame) |
35 { | 35 { |
36 InspectorTest.addResult("Script source was shown."); | 36 InspectorTest.addResult("Script source was shown."); |
37 InspectorTest.setBreakpoint(sourceFrame, 8, "", true); | 37 InspectorTest.setBreakpoint(sourceFrame, 8, "", true); |
38 InspectorTest.runTestFunctionAndWaitUntilPaused(step3); | 38 InspectorTest.runTestFunctionAndWaitUntilPaused(step3); |
39 } | 39 } |
40 | 40 |
41 function step3(callFrames) | 41 function step3(callFrames) |
42 { | 42 { |
43 InspectorTest.captureStackTrace(callFrames, true); | 43 InspectorTest.captureStackTrace(callFrames, null, { dropLineNumbers: tru
e }); |
44 InspectorTest.completeDebuggerTest(); | 44 InspectorTest.completeDebuggerTest(); |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 window.onload = runTest; | 48 window.onload = runTest; |
49 </script> | 49 </script> |
50 | 50 |
51 <p> | 51 <p> |
52 Tests for a crash when paused at a breakpoint caused by inaccurate Activation re
cords. | 52 Tests for a crash when paused at a breakpoint caused by inaccurate Activation re
cords. |
53 <a href="https://bugs.webkit.org/show_bug.cgi?id=57120">Bug 57120</a> | 53 <a href="https://bugs.webkit.org/show_bug.cgi?id=57120">Bug 57120</a> |
54 </p> | 54 </p> |
OLD | NEW |