Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ef770f685580534704c41621b16f0b4ae41204e1
      
https://github.com/WebKit/WebKit/commit/ef770f685580534704c41621b16f0b4ae41204e1
  Author: Yijia Huang <[email protected]>
  Date:   2026-06-26 (Fri, 26 Jun 2026)

  Changed paths:
    A JSTests/stress/temporal-plain-time-since-operand-swap.js
    M Source/JavaScriptCore/runtime/TemporalPlainDateTime.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainDateTimePrototype.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainTime.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainTime.h
    M Source/JavaScriptCore/runtime/TemporalPlainTimeConstructor.cpp
    M Source/JavaScriptCore/runtime/TemporalPlainTimePrototype.cpp

  Log Message:
  -----------
  [JSC][Temporal] Polish Temporal.PlainTime: spec alignment and helper rename
https://bugs.webkit.org/show_bug.cgi?id=317978
rdar://180760547

Reviewed by Yusuke Suzuki.

Annotate every Temporal.PlainTime operation against the Stage 4
spec; fix two dead spec anchors and a misleading ECMA-402 link.

Rename the fused IsValidTime + CreateTimeRecord helper from
toPlainTime to validateAndCreateTimeRecord, with a header
explaining that the fusion mirrors the spec's repeating
"if IsValidTime is false throw; else CreateTimeRecord" pattern.

Drop the dead parse<> template and fromObject() static (declared
but never defined or called) and the duplicate
validateTemporalUnitValue call in round().

Lock in the operand-swap optimization in DifferenceTemporalPlainTime
with a new stress test covering since() across all nine rounding
modes — the swap depends on the rounding mode not being flipped
by extractDifferenceOptions for since.

Test: JSTests/stress/temporal-plain-time-since-operand-swap.js
Canonical link: https://commits.webkit.org/315942@main



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

Reply via email to