Skip to content

Commit

Permalink
Fixing the VM branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Razican committed Dec 22, 2021
1 parent b36623c commit f72859f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions boa/src/environment/lexical_environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ impl Context {
.recursive_get_this_binding(self)
}

#[cfg(feature = "vm")]
pub(crate) fn get_global_this_binding(&mut self) -> JsResult<JsValue> {
let global = self.realm.global_env.clone();
global.get_this_binding(self)
}

pub(crate) fn create_mutable_binding(
&mut self,
name: &str,
Expand Down

0 comments on commit f72859f

Please sign in to comment.