Skip to content

Commit

Permalink
Merge 790a93c into eb5d24e
Browse files Browse the repository at this point in the history
  • Loading branch information
Razican authored Aug 22, 2022
2 parents eb5d24e + 790a93c commit 3f2fb73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion boa_engine/src/builtins/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ fn init_builtin<B: BuiltIn>(context: &mut Context) {
.build();
context
.global_bindings_mut()
.insert(B::NAME.into(), property);
.insert(B::NAME.into(), property.clone());
context
.global_object()
.borrow_mut()
.insert(B::NAME, property);
}
}

Expand Down

0 comments on commit 3f2fb73

Please sign in to comment.