diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/NativeFunction.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/NativeFunction.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/NativeFunction.cpp b/Userland/Libraries/LibJS/Runtime/NativeFunction.cpp index a507b4bdbe..0933d3a420 100644 --- a/Userland/Libraries/LibJS/Runtime/NativeFunction.cpp +++ b/Userland/Libraries/LibJS/Runtime/NativeFunction.cpp @@ -16,19 +16,19 @@ NativeFunction* NativeFunction::create(GlobalObject& global_object, const FlyStr } NativeFunction::NativeFunction(Object& prototype) - : Function(prototype) + : FunctionObject(prototype) { } NativeFunction::NativeFunction(PropertyName const& name, AK::Function<Value(VM&, GlobalObject&)> native_function, Object& prototype) - : Function(prototype) + : FunctionObject(prototype) , m_name(name.as_string()) , m_native_function(move(native_function)) { } NativeFunction::NativeFunction(PropertyName const& name, Object& prototype) - : Function(prototype) + : FunctionObject(prototype) , m_name(name.as_string()) { } @@ -42,12 +42,12 @@ Value NativeFunction::call() return m_native_function(vm(), global_object()); } -Value NativeFunction::construct(Function&) +Value NativeFunction::construct(FunctionObject&) { return {}; } -FunctionEnvironmentRecord* NativeFunction::create_environment_record(Function&) +FunctionEnvironmentRecord* NativeFunction::create_environment_record(FunctionObject&) { return nullptr; } |