-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
Updates to temporal_rs version and temporal methods #3900
Conversation
Test262 conformance changes
Fixed tests (140):
Broken tests (26):
|
After a spot check, the new broken tests appear to be previous false positives on |
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.
Overall good! I just have a small suggestion.
@@ -254,7 +254,8 @@ pub(crate) fn to_relative_temporal_object( | |||
JsValue::Object(relative_to_obj) => Some(relative_to_obj.into()), | |||
_ => None, | |||
} | |||
.map(|plane_date| Ok::<_, JsError>(to_temporal_date(&plane_date, None, context)?.inner)) | |||
.map(|plain_date| Ok::<_, JsError>(to_temporal_date(&plain_date, None, context))) |
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.
Thought: The previous match could probably be rewritten to use an early return on None
. It would simplify this part by a lot.
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.
LGTM!
This Pull Request is related to the ongoing work for temporal.
It changes the following:
temporal_rs
to0.0.3
temporal_rs
to_temporal_time
andto_temporal_datetime
abstract operations