LibJS: Rename Function => FunctionObject

This commit is contained in:
Andreas Kling
2021-06-27 21:48:34 +02:00
parent e389ae3c97
commit ba9d5c4d54
Notes: sideshowbarker 2024-07-18 11:26:14 +09:00
114 changed files with 263 additions and 262 deletions

View File

@@ -68,7 +68,7 @@ Value ArrayConstructor::call()
}
// 23.1.1.1 Array ( ...values ), https://tc39.es/ecma262/#sec-array
Value ArrayConstructor::construct(Function&)
Value ArrayConstructor::construct(FunctionObject&)
{
return call();
}
@@ -83,7 +83,7 @@ JS_DEFINE_NATIVE_FUNCTION(ArrayConstructor::from)
auto* array = Array::create(global_object);
Function* map_fn = nullptr;
FunctionObject* map_fn = nullptr;
if (!vm.argument(1).is_undefined()) {
auto callback = vm.argument(1);
if (!callback.is_function()) {