mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:17:34 +00:00
LibJS: Convert ProxyObject::create() to NonnullGCPtr
This commit is contained in:
parent
6e386acb11
commit
e0818bf21e
3 changed files with 4 additions and 4 deletions
|
@ -21,7 +21,7 @@ static ThrowCompletionOr<ProxyObject*> proxy_create(VM& vm, Value target, Value
|
|||
return vm.throw_completion<TypeError>(ErrorType::ProxyConstructorBadType, "target", target.to_string_without_side_effects());
|
||||
if (!handler.is_object())
|
||||
return vm.throw_completion<TypeError>(ErrorType::ProxyConstructorBadType, "handler", handler.to_string_without_side_effects());
|
||||
return ProxyObject::create(realm, target.as_object(), handler.as_object());
|
||||
return ProxyObject::create(realm, target.as_object(), handler.as_object()).ptr();
|
||||
}
|
||||
|
||||
ProxyConstructor::ProxyConstructor(Realm& realm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue