diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ProxyObject.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ProxyObject.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ProxyObject.h b/Userland/Libraries/LibJS/Runtime/ProxyObject.h index 9cda19504b..566310aea9 100644 --- a/Userland/Libraries/LibJS/Runtime/ProxyObject.h +++ b/Userland/Libraries/LibJS/Runtime/ProxyObject.h @@ -6,12 +6,12 @@ #pragma once -#include <LibJS/Runtime/Function.h> +#include <LibJS/Runtime/FunctionObject.h> namespace JS { -class ProxyObject final : public Function { - JS_OBJECT(ProxyObject, Function); +class ProxyObject final : public FunctionObject { + JS_OBJECT(ProxyObject, FunctionObject); public: static ProxyObject* create(GlobalObject&, Object& target, Object& handler); @@ -20,9 +20,9 @@ public: virtual ~ProxyObject() override; virtual Value call() override; - virtual Value construct(Function& new_target) override; + virtual Value construct(FunctionObject& new_target) override; virtual const FlyString& name() const override; - virtual FunctionEnvironmentRecord* create_environment_record(Function&) override; + virtual FunctionEnvironmentRecord* create_environment_record(FunctionObject&) override; const Object& target() const { return m_target; } const Object& handler() const { return m_handler; } |