Skip to content

Commit

Permalink
Update boa_engine/src/object/jsobject.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Haled Odat <[email protected]>
  • Loading branch information
jasonwilliams and HalidOdat authored May 28, 2023
1 parent 959f352 commit aab28cc
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions boa_engine/src/object/jsobject.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1104,12 +1104,10 @@ impl Debug for JsObject {
let ptr: *const _ = self.as_ref();
let obj = self.borrow();
let kind = obj.kind();
let name_prop = self
.borrow()
.properties()
.get(&PropertyKey::String(JsString::from("name")));

if obj.is_function() {
if obj.is_function() {
let name_prop = obj
.properties()
.get(&PropertyKey::String(JsString::from("name")));
let name = match name_prop {
None => JsString::default(),
Some(prop) => prop
Expand Down

0 comments on commit aab28cc

Please sign in to comment.