Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bfa2198e28e0edc6e49c1329c2de9a871adeeddb
      
https://github.com/WebKit/WebKit/commit/bfa2198e28e0edc6e49c1329c2de9a871adeeddb
  Author: Keita Nonaka <[email protected]>
  Date:   2025-11-05 (Wed, 05 Nov 2025)

  Changed paths:
    A JSTests/stress/date-constructor.js
    M Source/JavaScriptCore/runtime/DateConstructor.cpp

  Log Message:
  -----------
  [JSC] Clean up Redundant Code in Date Constructor 
(`millisecondsFromComponents()`)
https://bugs.webkit.org/show_bug.cgi?id=301818

Reviewed by Yusuke Suzuki.

This patch reduces redundant looping and simplifies argument conversion
in Date constructor[1] and Date.UTC()[2].

[1]: https://tc39.es/ecma262/#sec-date
[2]: https://tc39.es/ecma262/#sec-date.utc

* JSTests/stress/date-constructor.js: Added.
(shouldBe):
(i.generateObj):
* Source/JavaScriptCore/runtime/DateConstructor.cpp:
(JSC::millisecondsFromComponents):
(JSC::toIntegerOrInfinity): Deleted.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to