Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 040bf5c5c8b03e7e35d9c61674fd268681c98aac
      
https://github.com/WebKit/WebKit/commit/040bf5c5c8b03e7e35d9c61674fd268681c98aac
  Author: Sosuke Suzuki <[email protected]>
  Date:   2025-02-28 (Fri, 28 Feb 2025)

  Changed paths:
    M Source/JavaScriptCore/runtime/StringPrototype.cpp

  Log Message:
  -----------
  [JSC] Use template parameter for `trimString` function
https://bugs.webkit.org/show_bug.cgi?id=288899

Reviewed by Yusuke Suzuki.

The `trimString` function, used by `String#trim`, `String#trimStart`, and 
`String#trimEnd`,
takes an argument called `trimKind`. Since this value is determined at compile 
time, this
patch changes `trimKind` to be a template parameter.

* Source/JavaScriptCore/runtime/StringPrototype.cpp:
(JSC::trimString):
(JSC::JSC_DEFINE_HOST_FUNCTION):
(): Deleted.

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