-
timothy@apple.com authored
Emit the WillExecuteStatement debugger hook before the for loop body when the statement node for the body isn't a block. This allows breakpoints on those statements in the Web Inspector. JavaScriptCore: 2008-10-31 Timothy Hatcher <timothy@apple.com> Emit the WillExecuteStatement debugger hook before the for loop body when the statement node for the body isn't a block. This allows breakpoints on those statements in the Web Inspector. https://bugs.webkit.org/show_bug.cgi?id=22004 Reviewed by Darin Adler. * kjs/nodes.cpp: (JSC::ForNode::emitCode): Emit the WillExecuteStatement debugger hook before the statement node if isn't a block. Also emit the WillExecuteStatement debugger hook for the loop as the first op-code. (JSC::ForInNode::emitCode): Ditto. WebCore: 2008-10-31 Timothy Hatcher <timothy@apple.com> Add manual tests that check breakpoints on a blockless body of "for" loops. https://bugs.webkit.org/show_bug.cgi?id=22004 Reviewed by Darin Adler. * manual-tests/inspector/debugger-pause-on-for-in-statements.html: Added. * manual-tests/inspector/debugger-pause-on-for-statements.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38040 268f45cc-cd09-0410-ab3c-d52691b4dbfc
fae1018f