-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[Temporal] Implement toString, toJSON, and toLocaleString for PlainMonthDay #52042
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Temporal] Implement toString, toJSON, and toLocaleString for PlainMonthDay #52042
Conversation
|
EWS run on previous version of this PR (hash 707a753) Details |
707a753 to
ea2abf2
Compare
|
EWS run on previous version of this PR (hash ea2abf2) Details |
| return makeString(prefix, pad('0', yearDigits, year), '-', pad('0', 2, month)); | ||
| } | ||
|
|
||
| static String temporalDateToString(double year, double month, double day) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Taking double is very concerning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in a499a53
| } | ||
|
|
||
| String temporalDateToString(PlainDate plainDate) | ||
| static String temporalDateToString(double year, double month) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto. It should be integers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in a499a53
|
EWS run on previous version of this PR (hash a499a53) Details |
a499a53 to
123be95
Compare
|
EWS run on previous version of this PR (hash 123be95) Details |
123be95 to
51b9ef8
Compare
|
EWS run on current version of this PR (hash 51b9ef8) Details |
…nthDay https://bugs.webkit.org/show_bug.cgi?id=300423 Reviewed by Yusuke Suzuki. Implement these methods. * JSTests/stress/temporal-plainmonthday.js: (shouldThrow): * JSTests/test262/config.yaml: * Source/JavaScriptCore/runtime/CommonIdentifiers.h: * Source/JavaScriptCore/runtime/ISO8601.cpp: (JSC::ISO8601::temporalDateToString): (JSC::ISO8601::temporalMonthDayToString): * Source/JavaScriptCore/runtime/ISO8601.h: * Source/JavaScriptCore/runtime/TemporalObject.cpp: (JSC::toTemporalCalendarName): * Source/JavaScriptCore/runtime/TemporalObject.h: * Source/JavaScriptCore/runtime/TemporalPlainMonthDay.cpp: (JSC::TemporalPlainMonthDay::toString const): * Source/JavaScriptCore/runtime/TemporalPlainMonthDay.h: * Source/JavaScriptCore/runtime/TemporalPlainMonthDayPrototype.cpp: (JSC::JSC_DEFINE_HOST_FUNCTION): Canonical link: https://commits.webkit.org/301375@main
51b9ef8 to
0675fe1
Compare
|
Committed 301375@main (0675fe1): https://commits.webkit.org/301375@main Reviewed commits have been landed. Closing PR #52042 and removing active labels. |
🧪 ios-wk2-wpt
0675fe1
51b9ef8
🛠 playstation