mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibJS: Use String::formatted() for throw_exception() message
This commit is contained in:
committed by
Andreas Kling
parent
a27668cbae
commit
f9eaac62d9
@@ -66,11 +66,11 @@ Value ProxyConstructor::construct(Function&)
|
||||
auto handler = vm.argument(1);
|
||||
|
||||
if (!target.is_object()) {
|
||||
vm.throw_exception<TypeError>(global_object(), ErrorType::ProxyConstructorBadType, "target", target.to_string_without_side_effects().characters());
|
||||
vm.throw_exception<TypeError>(global_object(), ErrorType::ProxyConstructorBadType, "target", target.to_string_without_side_effects());
|
||||
return {};
|
||||
}
|
||||
if (!handler.is_object()) {
|
||||
vm.throw_exception<TypeError>(global_object(), ErrorType::ProxyConstructorBadType, "handler", handler.to_string_without_side_effects().characters());
|
||||
vm.throw_exception<TypeError>(global_object(), ErrorType::ProxyConstructorBadType, "handler", handler.to_string_without_side_effects());
|
||||
return {};
|
||||
}
|
||||
return ProxyObject::create(global_object(), target.as_object(), handler.as_object());
|
||||
|
||||
Reference in New Issue
Block a user