<rdar://problem/6204189> the do get's hit because statementListEmitCode emits a debug hook for the first line of the statement but for do-whiiles we really want it to be on the last line.
Created attachment 23709 [details] Test file which shows the issue
Created attachment 23710 [details] Patch
Comment on attachment 23710 [details] Patch r=me Is there any way to do automated testing of debugger hook changes? + * kjs/nodes.h: + (JSC::StatementNode::): + (JSC::DoWhileNode::): This is kind of weak. When prepare-ChangeLog puts nonsense in the ChangeLog you should fix it instead of just checking it in.
Committed revision 36809. I fixed the change log and I'll look into automated debugger hook testing.