1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-02 23:32:06 +00:00

LibJS: Rename Function => FunctionObject

This commit is contained in:
Andreas Kling 2021-06-27 21:48:34 +02:00
parent e389ae3c97
commit ba9d5c4d54
114 changed files with 263 additions and 262 deletions

View file

@ -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;
}