-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Temporal: Implement valueOf for PlainMonthDay objects #54563
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 valueOf for PlainMonthDay objects #54563
Conversation
|
EWS run on current version of this PR (hash 469f6ea) Details |
ptomato
left a comment
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.
I'm not a reviewer, but this does implement the intended functionality 😄
| shouldBe(Temporal.PlainMonthDay.prototype.valueOf.length, 0); | ||
| { | ||
| shouldThrow(() => monthDay.valueOf(), TypeError); | ||
| } |
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.
These things are definitely covered in test262 already, though I don't know what the policy is for duplicating coverage in JSTests.
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.
I've assumed there needs to be a stress test for each commit, but someone correct me if I'm wrong?
https://bugs.webkit.org/show_bug.cgi?id=303243 Reviewed by Justin Michaud. Implement valueOf for PlainMonthDay (which always throws). Also enable a test for PlainDate that passes, which somehow wasn't enabled in the previous Temporal PR. * JSTests/stress/temporal-plainmonthday.js: (shouldBe): * JSTests/test262/config.yaml: * JSTests/test262/expectations.yaml: * Source/JavaScriptCore/runtime/TemporalPlainMonthDayPrototype.cpp: (JSC::JSC_DEFINE_HOST_FUNCTION): Canonical link: https://commits.webkit.org/303631@main
469f6ea to
883b821
Compare
|
Committed 303631@main (883b821): https://commits.webkit.org/303631@main Reviewed commits have been landed. Closing PR #54563 and removing active labels. |
883b821
469f6ea
🧪 win-tests🧪 ios-wk2🛠 playstation🧪 jsc-armv7-tests