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:
parent
e389ae3c97
commit
ba9d5c4d54
114 changed files with 263 additions and 262 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue