diff --git a/boa_engine/src/vm/opcode/set/name.rs b/boa_engine/src/vm/opcode/set/name.rs index 80402425083..25accacc4ad 100644 --- a/boa_engine/src/vm/opcode/set/name.rs +++ b/boa_engine/src/vm/opcode/set/name.rs @@ -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) diff --git a/boa_engine/src/vm/opcode/set/private.rs b/boa_engine/src/vm/opcode/set/private.rs index e4aefb9f03b..22c3241903d 100644 --- a/boa_engine/src/vm/opcode/set/private.rs +++ b/boa_engine/src/vm/opcode/set/private.rs @@ -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"); }