Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 50aa3e6d55363eac3abe51b89a00719b6ce6d717
      
https://github.com/WebKit/WebKit/commit/50aa3e6d55363eac3abe51b89a00719b6ce6d717
  Author: Sosuke Suzuki <[email protected]>
  Date:   2025-10-11 (Sat, 11 Oct 2025)

  Changed paths:
    M Source/JavaScriptCore/runtime/JSInternalPromise.cpp
    M Source/JavaScriptCore/runtime/JSInternalPromise.h

  Log Message:
  -----------
  [JSC] Remove unused default parameters from `JSInternalPromise::then`
https://bugs.webkit.org/show_bug.cgi?id=300490

Reviewed by Yusuke Suzuki.

This patch removes unused default parameters from `JSInternalPromise::then`.
This patch also adds `ASSERT` statements to check that `onFulfilled` and 
`onRejected` are not `nullptr`.
If these parameters are `nullptr`, a segmentation fault will occur in 
`performPromiseThen`.

* Source/JavaScriptCore/runtime/JSInternalPromise.cpp:
(JSC::JSInternalPromise::then):
* Source/JavaScriptCore/runtime/JSInternalPromise.h:

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to