[webkit-changes] [WebKit/WebKit] 45eea0: [WebIDL] Greatly simplify reporting an OOM error i...

Alexey Shvayka noreply at github.com
Mon Sep 19 13:45:35 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 45eea066f649f61bcf1e380097b34986dbdda9a2
      https://github.com/WebKit/WebKit/commit/45eea066f649f61bcf1e380097b34986dbdda9a2
  Author: Alexey Shvayka <shvaikalesh at gmail.com>
  Date:   2022-09-19 (Mon, 19 Sep 2022)

  Changed paths:
    M Source/WebCore/bindings/js/ScheduledAction.cpp

  Log Message:
  -----------
  [WebIDL] Greatly simplify reporting an OOM error in ScheduledAction::executeFunctionInContext()
https://bugs.webkit.org/show_bug.cgi?id=245367

Reviewed by Mark Lam.

This change leverages JSC::Exception::create() to avoid throwing and then catching
an OOM error just to wrap it into a JSC::Exception.

* Source/WebCore/bindings/js/ScheduledAction.cpp:
(WebCore::ScheduledAction::executeFunctionInContext):

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




More information about the webkit-changes mailing list