Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nekevss committed Oct 19, 2022
1 parent bf00fcc commit d1e678a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion boa_engine/src/vm/opcode/set/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ impl Operation for SetName {
) {
context.throw_reference_error(format!(
"cannot access '{}' before initialization",
context.interner().resolve_expect(binding_locator.name().sym())
context
.interner()
.resolve_expect(binding_locator.name().sym())
))?;
}
Ok(ShouldExit::False)
Expand Down
3 changes: 2 additions & 1 deletion boa_engine/src/vm/opcode/set/private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ impl Operation for SetPrivateMethod {
let object = context.vm.pop();
if let Some(object) = object.as_object() {
let mut object_borrow_mut = object.borrow_mut();
object_borrow_mut.set_private_element(name.sym(), PrivateElement::Method(value.clone()));
object_borrow_mut
.set_private_element(name.sym(), PrivateElement::Method(value.clone()));
} else {
return context.throw_type_error("cannot set private setter on non-object");
}
Expand Down

0 comments on commit d1e678a

Please sign in to comment.