Skip to content

Commit

Permalink
Copy/paste fix in error message
Browse files Browse the repository at this point in the history
Really small self-explanatory change
  • Loading branch information
icecream17 authored Jan 19, 2022
1 parent 5c4d970 commit 10a2029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boa/src/builtins/proxy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl Proxy {
fn create(target: &JsValue, handler: &JsValue, context: &mut Context) -> JsResult<JsValue> {
// 1. If Type(target) is not Object, throw a TypeError exception.
let target = target.as_object().ok_or_else(|| {
context.construct_type_error("Proxy constructor called with non-object handler")
context.construct_type_error("Proxy constructor called with non-object target")
})?;

// 2. If Type(handler) is not Object, throw a TypeError exception.
Expand Down

0 comments on commit 10a2029

Please sign in to comment.