[webkit-changes] [WebKit/WebKit] 02deab: [JSC] Remove unnecessary function call for some `D...

SUZUKI Sosuke noreply at github.com
Wed Feb 12 01:59:49 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 02deabced6f67810c5f8e70ef3d1ee0a1297ac80
      https://github.com/WebKit/WebKit/commit/02deabced6f67810c5f8e70ef3d1ee0a1297ac80
  Author: Sosuke Suzuki <aosukeke at gmail.com>
  Date:   2025-02-12 (Wed, 12 Feb 2025)

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

  Log Message:
  -----------
  [JSC] Remove unnecessary function call for some `Date` methods
https://bugs.webkit.org/show_bug.cgi?id=287471

Reviewed by Yusuke Suzuki.

`applyToNumberToOtherwiseIgnoredArguments` calls `ToNumber`
for each arguments, so if `argumentCount` is zero, it should
not be called.

* Source/JavaScriptCore/runtime/DatePrototype.cpp:
(JSC::setNewValueFromDateArgs):

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