Skip to content

Commit

Permalink
code-format
Browse files Browse the repository at this point in the history
  • Loading branch information
creampnx-x authored Sep 9, 2022
1 parent ff2904c commit 0f58b1d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion boa_engine/src/vm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1524,7 +1524,13 @@ impl Context {
let mut home_object = function.get_home_object().cloned();

if home_object == None {
home_object = self.vm.stack.last().expect("stack is empty").as_object().cloned();
home_object = self
.vm
.stack
.last()
.expect("stack is empty")
.as_object()
.cloned();
}
home_object
} else {
Expand Down

0 comments on commit 0f58b1d

Please sign in to comment.