Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c724273822ecdefc02e6501581b649cc772cb94d
      
https://github.com/WebKit/WebKit/commit/c724273822ecdefc02e6501581b649cc772cb94d
  Author: Yusuke Suzuki <[email protected]>
  Date:   2023-10-26 (Thu, 26 Oct 2023)

  Changed paths:
    A JSTests/stress/intl-mathematical-value.js
    M JSTests/test262/expectations.yaml
    M Source/JavaScriptCore/runtime/IntlNumberFormat.cpp
    M Source/JavaScriptCore/runtime/IntlNumberFormat.h
    M Source/JavaScriptCore/runtime/IntlNumberFormatInlines.h

  Log Message:
  -----------
  [JSC] Add precise IntlMathematicalValue
https://bugs.webkit.org/show_bug.cgi?id=263705
rdar://problem/117535507

Reviewed by Justin Michaud.

This patch implements precise IntlMathematicalValue aligning to the spec[1].

1. We should keep string representation if the string value may not be exactly 
converted to double.
   And we should pass string directly to ICU when it happens.
2. We should appropriately handle 0x / 0o / 0b patterns.

[1]: https://tc39.es/ecma402/#sec-tointlmathematicalvalue

* JSTests/test262/expectations.yaml:
* Source/JavaScriptCore/runtime/IntlNumberFormat.cpp:
(JSC::IntlMathematicalValue::parseString):
* Source/JavaScriptCore/runtime/IntlNumberFormat.h:
* Source/JavaScriptCore/runtime/IntlNumberFormatInlines.h:
(JSC::toIntlMathematicalValue):

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to