Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3df7f122b6c75b2cc4f0e4dfb4022d2351d5bc8a
      
https://github.com/WebKit/WebKit/commit/3df7f122b6c75b2cc4f0e4dfb4022d2351d5bc8a
  Author: Devin Rousso <[email protected]>
  Date:   2026-07-04 (Sat, 04 Jul 2026)

  Changed paths:
    A LayoutTests/inspector/debugger/breakpoint-empty-statement-expected.txt
    A LayoutTests/inspector/debugger/breakpoint-empty-statement.html
    A LayoutTests/inspector/debugger/resources/empty-statement.js
    M Source/JavaScriptCore/parser/Parser.cpp

  Log Message:
  -----------
  Web Inspector: JavaScript breakpoint on a line with just a semicolon doesn't 
get triggered
https://bugs.webkit.org/show_bug.cgi?id=272916
<rdar://problem/126707973>

Reviewed by Keith Miller.

Don't add a pause location for empty statements as there's nothing to execute.

* Source/JavaScriptCore/parser/Parser.cpp:
(JSC::Parser<LexerType>::parseStatement):

* LayoutTests/inspector/debugger/breakpoint-empty-statement.html: Added.
* LayoutTests/inspector/debugger/breakpoint-empty-statement-expected.txt: Added.
* LayoutTests/inspector/debugger/resources/empty-statement.js: Added.

Canonical link: https://commits.webkit.org/316519@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to