[webkit-changes] [WebKit/WebKit] b25295: [JSC] Remove unnecessary std::forward in ensureValue

Yijia Huang noreply at github.com
Tue Mar 4 08:51:11 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b25295dc5b258307bae2f5c360c8b6ac5e153f63
      https://github.com/WebKit/WebKit/commit/b25295dc5b258307bae2f5c360c8b6ac5e153f63
  Author: Yijia Huang <yijia_huang at apple.com>
  Date:   2025-03-04 (Tue, 04 Mar 2025)

  Changed paths:
    M Source/JavaScriptCore/runtime/WeakGCMap.h

  Log Message:
  -----------
  [JSC] Remove unnecessary std::forward in ensureValue
https://bugs.webkit.org/show_bug.cgi?id=289073
rdar://146087220

Reviewed by Yusuke Suzuki.

The std::forward<Functor>(functor) in ensureValue was misleading because
HashMap::ensure takes the functor as a const reference and does not move it.
This change removes the unnecessary forwarding to improve code clarity
without affecting functionality.

* Source/JavaScriptCore/runtime/WeakGCMap.h:

Canonical link: https://commits.webkit.org/291563@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