| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 function test() | 2 function test() |
| 3 { | 3 { |
| 4 debugger; | 4 debugger; |
| 5 } | 5 } |
| 6 | 6 |
| 7 if (false) | 7 if (false) |
| 8 debugger; // This should not be hit. | 8 debugger; // This should not be hit. |
| 9 else | 9 else |
| 10 test(); | 10 test(); |
| 11 </script> | 11 </script> |
| 12 | 12 |
| 13 <p>To test, open the DevTools (Ctrl+Shift+I) and reload the page. When the debug
ger breaks, select the (anonymous function) node | 13 <p>To test, open the DevTools (Ctrl+Shift+I) and reload the page. When the debug
ger breaks, select the (anonymous function) node |
| 14 in the call stack, you should see the execution line on the call to test().</p> | 14 in the call stack, you should see the execution line on the call to test().</p> |
| 15 <br><br> | 15 <br><br> |
| 16 Also set a breakpoint on the call to test(), and reload. It should break before
the test() function is called. | 16 Also set a breakpoint on the call to test(), and reload. It should break before
the test() function is called. |
| OLD | NEW |