Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[JSC] Temporal tweaks to pass more test262 tests
https://bugs.webkit.org/show_bug.cgi?id=231331 Patch by Philip Chimento <pchimento@igalia.com> on 2021-10-07 Reviewed by Yusuke Suzuki. JSTests: * test262/config.yaml: Three tests no longer crash, but they still depend on unimplemented functionality, so skip them. * test262/expectations.yaml: Source/JavaScriptCore: * runtime/ISO8601.h: (JSC::ISO8601::Duration::operator[]): Add an overload for Duration[] that indexes by TemporalUnit enum instead of integer index. (JSC::ISO8601::Duration::operator[] const): * runtime/TemporalDuration.cpp: (JSC::TemporalDuration::fromDurationLike): Access Duration properties in the order defined in the specification. (JSC::TemporalDuration::with const): Access Duration properties in the order defined in the specification. (JSC::TemporalDuration::round const): Temporarily throw an exception here instead of failing an assertion, when attempting to use unimplemented relativeTo functionality. * runtime/TemporalObject.cpp: (JSC::temporalUnitPluralPropertyName): Rename from temporalUnitPropertyName. (JSC::temporalUnitSingularPropertyName): Added. * runtime/TemporalObject.h: Add array corresponding to the table in the spec text specifying alphabetical access order for unit properties. * runtime/TemporalPlainTime.cpp: (JSC::toTemporalTimeRecord): Access PlainTime properties in the order defined in the specification. (JSC::toPartialTime): Access PlainTime properties in the order defined in the specification. Canonical link: https://commits.webkit.org/242631@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@283705 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
8398ffb
commit 79ff5b510aab1e5c1da404c1bdd27dbe528cd88b
Showing
9 changed files
with
110 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.