[webkit-changes] [WebKit/WebKit] 8b6096: Add missing exception check in ScriptExecutable::n...

Commit Queue noreply at github.com
Mon Apr 10 18:27:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8b609688f1de53d52ac6cfc36de3bfd4b56c18ed
      https://github.com/WebKit/WebKit/commit/8b609688f1de53d52ac6cfc36de3bfd4b56c18ed
  Author: Yijia Huang <yijia_huang at apple.com>
  Date:   2023-04-10 (Mon, 10 Apr 2023)

  Changed paths:
    M Source/JavaScriptCore/runtime/ModuleProgramExecutable.cpp
    M Source/JavaScriptCore/runtime/ModuleProgramExecutable.h
    M Source/JavaScriptCore/runtime/ScriptExecutable.cpp

  Log Message:
  -----------
  Add missing exception check in ScriptExecutable::newCodeBlockFor
https://bugs.webkit.org/show_bug.cgi?id=255259
rdar://107856292

Reviewed by Mark Lam and Yusuke Suzuki.

ModuleProgramExecutable::getUnlinkedCodeBlock can throw runtime errors.
We should handle those.

* Source/JavaScriptCore/runtime/ScriptExecutable.cpp:
(JSC::ScriptExecutable::newCodeBlockFor):

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




More information about the webkit-changes mailing list