[webkit-changes] [WebKit/WebKit] 429826: [JSC] Gracefully handle stack overflow error from ...

Yusuke Suzuki noreply at github.com
Wed Jan 15 00:09:26 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 4298267945e80b52ddbc50a483b30740f08a164e
      https://github.com/WebKit/WebKit/commit/4298267945e80b52ddbc50a483b30740f08a164e
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2025-01-15 (Wed, 15 Jan 2025)

  Changed paths:
    A JSTests/stress/parser-stack-overflow.js
    M Source/JavaScriptCore/parser/Parser.cpp

  Log Message:
  -----------
  [JSC] Gracefully handle stack overflow error from JS parser in class initializer syntax
https://bugs.webkit.org/show_bug.cgi?id=285800
rdar://142737633

Reviewed by Mark Lam.

parseExpression can fail when soft stack overflow check fails. We should
fail gracefully in that condition.

* JSTests/stress/parser-stack-overflow.js: Added.
(__c_1):
* Source/JavaScriptCore/parser/Parser.cpp:
(JSC::Parser<LexerType>::parseClassFieldInitializerSourceElements):

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



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


More information about the webkit-changes mailing list