Skip to content

Commit

Permalink
Correct reference error message
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmunsters committed Feb 21, 2022
1 parent 1d28514 commit 84a3eff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boa/src/vm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ impl Context {

if !exists && (self.strict() || self.vm.frame().code.strict) {
return self
.throw_reference_error(format!("binding already exists: {key}"));
.throw_reference_error(format!("assignment to undeclared variable {key}"));
}

let success = crate::object::internal_methods::global::global_set_no_receiver(
Expand Down

0 comments on commit 84a3eff

Please sign in to comment.