mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +02:00
LibJS: Rename Function => FunctionObject
This commit is contained in:
Notes:
sideshowbarker
2024-07-18 11:26:14 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ba9d5c4d54d
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user