Skip to content

Commit

Permalink
Re-enable JsObject's debug printing
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed May 11, 2023
1 parent 7f44bd7 commit c80265d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions boa_engine/src/object/jsobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,6 @@ impl RecursionLimiter {
impl Debug for JsObject {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> std::fmt::Result {
let ptr: *const _ = self.vtable();
let obj: *const _ = &*self.inner;
let limiter = RecursionLimiter::new(self.as_ref());

// Typically, using `!limiter.live` would be good enough here.
Expand All @@ -1098,7 +1097,7 @@ impl Debug for JsObject {
if !limiter.visited && !limiter.live {
f.debug_struct("JsObject")
.field("vtable", &ptr)
.field("object", &obj)
.field("object", &self.inner.object)
.finish()
} else {
f.write_str("{ ... }")
Expand Down

0 comments on commit c80265d

Please sign in to comment.