Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/engine/src/builtins/intl/date_time_format/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl DateTimeFormat {
// 3. Perform ? RequireInternalSlot(dtf, [[InitializedDateTimeFormat]]).
let dtf_object = object.downcast::<Self>().map_err(|_| {
JsNativeError::typ()
.with_message("the `this` object must be an initializedDateTimeFormat object")
.with_message("the `this` object must be an initialized DateTimeFormat object")
})?;
let dtf_clone = dtf_object.clone();
let mut dtf = dtf_object.borrow_mut();
Expand Down Expand Up @@ -491,7 +491,7 @@ impl ToLocalTime {
pub(crate) fn to_formattable_datetime(&self) -> DateTime<Iso> {
DateTime {
date: Date::try_new_iso(self.year, self.month, self.day)
.expect("TimeClip insures valid range."),
.expect("TimeClip ensures valid range."),
time: Time::try_new(self.hour, self.minute, self.second, self.subsecond)
.expect("valid values"),
}
Expand Down
Loading