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
Temporal round and total methods should accept string param
https://bugs.webkit.org/show_bug.cgi?id=240249 Reviewed by Yusuke Suzuki. This patch implements tc39/proposal-temporal#1875, which allows certain required string options to be passed directly instead of as part of an options object. Namely: - `{Duration, Instant, PlainTime}::round` now accept `smallestUnit` as a string param - `Duration::total` now accepts `unit` as a string param * stress/temporal-duration.js: * stress/temporal-instant.js: * stress/temporal-plaintime.js: Add test cases. * test262/expectations.yaml: Mark 24 test cases passing. (This number should be 26, but two still fail as the harness expects PlainDateTime and ZonedDateTime to exist.) * runtime/TemporalDuration.cpp: (JSC::TemporalDuration::round const): (JSC::TemporalDuration::total const): * runtime/TemporalInstant.cpp: * runtime/TemporalPlainTime.cpp: (JSC::TemporalPlainTime::round const): Canonical link: https://commits.webkit.org/250433@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@293997 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
9 changed files
with
135 additions
and
72 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
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