[webkit-changes] [WebKit/WebKit] b495aa: [JSC] TimeZone without Time should be rejected in ...

SUZUKI Sosuke noreply at github.com
Thu Aug 15 15:49:13 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: b495aa82afafc5dbdc315415e7237b6444cc4841
      https://github.com/WebKit/WebKit/commit/b495aa82afafc5dbdc315415e7237b6444cc4841
  Author: Sosuke Suzuki <aosukeke at gmail.com>
  Date:   2024-08-15 (Thu, 15 Aug 2024)

  Changed paths:
    M JSTests/stress/temporal-instant.js
    M JSTests/stress/temporal-plaindate.js
    M JSTests/stress/temporal-plaindatetime.js
    M JSTests/test262/expectations.yaml
    M Source/JavaScriptCore/runtime/ISO8601.cpp

  Log Message:
  -----------
  [JSC] TimeZone without Time should be rejected in ISO8601 strings
https://bugs.webkit.org/show_bug.cgi?id=278139

Reviewed by Ross Kirsling.

In the latest Temporal spec, a TimeZone after a Date without a Time should be rejected[1][2].

However, the current JSC allows such ISO 8601 strings.

This PR changes to throw a RangeError when a TimeZone appears without a Time.

[1]: https://github.com/tc39/proposal-temporal/pull/2428
[2]: https://github.com/tc39/test262/pull/3699

* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/runtime/ISO8601.cpp:
(JSC::ISO8601::parseDateTime):

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