Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e19f57a779e161677336853feda3360b51802205
      
https://github.com/WebKit/WebKit/commit/e19f57a779e161677336853feda3360b51802205
  Author: Sosuke Suzuki <[email protected]>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    A JSTests/stress/regexp-cached-result-one-character-atom-delete-all-code.js
    M Source/JavaScriptCore/runtime/RegExp.cpp

  Log Message:
  -----------
  [JSC] `RegExp::deleteCode()` should not clear the pattern's atom
https://bugs.webkit.org/show_bug.cgi?id=323838

Reviewed by Yusuke Suzuki.

m_atom and m_specificPattern depend only on the pattern, like
m_numSubpatterns and m_rareData which deleteCode() already keeps, so stop
clearing them.

Test: JSTests/stress/regexp-cached-result-one-character-atom-delete-all-code.js

* JSTests/stress/regexp-cached-result-one-character-atom-delete-all-code.js: 
Added.
(shouldBe):
(step):
* Source/JavaScriptCore/runtime/RegExp.cpp:
(JSC::RegExp::deleteCode):

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



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

Reply via email to