Skip to content

Commit

Permalink
Post rebase fix on zdt
Browse files Browse the repository at this point in the history
  • Loading branch information
nekevss committed Dec 6, 2023
1 parent 9edffcf commit 0d909e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion boa_engine/src/builtins/temporal/time_zone/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ impl BuiltInConstructor for TimeZone {

impl TimeZone {
// NOTE: id, toJSON, toString currently share the exact same implementation -> Consolidate into one function and define multiple accesors?
pub(crate) fn get_id(this: &JsValue, _: &[JsValue], context: &mut Context) -> JsResult<JsValue> {
pub(crate) fn get_id(
this: &JsValue,
_: &[JsValue],
context: &mut Context,
) -> JsResult<JsValue> {
let tz = this
.as_object()
.and_then(JsObject::downcast_ref::<Self>)
Expand Down
4 changes: 3 additions & 1 deletion boa_engine/src/builtins/temporal/zoned_date_time/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ use boa_temporal::{
};

/// The `Temporal.ZonedDateTime` object.
#[derive(Debug, Clone, Trace, Finalize, JsData)]
#[derive(Debug, Clone, Finalize, Trace, JsData)]
// SAFETY: ZonedDateTime does not contain any traceable types.
#[boa_gc(unsafe_empty_trace)]
pub struct ZonedDateTime {
inner: InnerZdt,
}
Expand Down

0 comments on commit 0d909e0

Please sign in to comment.