diff options
author | Andreas Kling <kling@serenityos.org> | 2021-06-27 21:48:34 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-27 22:36:04 +0200 |
commit | ba9d5c4d54d2e58c14eafe1e8960c3832fac46c7 (patch) | |
tree | 975cef60a364e12fb5600555548bdb1f8565874e /Userland/Libraries/LibJS/Runtime/AbstractOperations.h | |
parent | e389ae3c9754b0c6c40a383a666f103c42789630 (diff) | |
download | serenity-ba9d5c4d54d2e58c14eafe1e8960c3832fac46c7.zip |
LibJS: Rename Function => FunctionObject
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/AbstractOperations.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/AbstractOperations.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/AbstractOperations.h b/Userland/Libraries/LibJS/Runtime/AbstractOperations.h index 0042bb47c7..acb63780fe 100644 --- a/Userland/Libraries/LibJS/Runtime/AbstractOperations.h +++ b/Userland/Libraries/LibJS/Runtime/AbstractOperations.h @@ -20,9 +20,9 @@ Object* get_super_constructor(VM&); Value require_object_coercible(GlobalObject&, Value); size_t length_of_array_like(GlobalObject&, Object const&); MarkedValueList create_list_from_array_like(GlobalObject&, Value, AK::Function<Result<void, ErrorType>(Value)> = {}); -Function* species_constructor(GlobalObject&, Object const&, Function& default_constructor); -GlobalObject* get_function_realm(GlobalObject&, Function const&); -Object* get_prototype_from_constructor(GlobalObject&, Function const& constructor, Object* (GlobalObject::*intrinsic_default_prototype)()); +FunctionObject* species_constructor(GlobalObject&, Object const&, FunctionObject& default_constructor); +GlobalObject* get_function_realm(GlobalObject&, FunctionObject const&); +Object* get_prototype_from_constructor(GlobalObject&, FunctionObject const& constructor, Object* (GlobalObject::*intrinsic_default_prototype)()); enum class CallerMode { Strict, @@ -36,7 +36,7 @@ Value perform_eval(Value, GlobalObject&, CallerMode, EvalMode); // 10.1.13 OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ , internalSlotsList ] ), https://tc39.es/ecma262/#sec-ordinarycreatefromconstructor template<typename T, typename... Args> -T* ordinary_create_from_constructor(GlobalObject& global_object, Function const& constructor, Object* (GlobalObject::*intrinsic_default_prototype)(), Args&&... args) +T* ordinary_create_from_constructor(GlobalObject& global_object, FunctionObject const& constructor, Object* (GlobalObject::*intrinsic_default_prototype)(), Args&&... args) { auto& vm = global_object.vm(); auto* prototype = get_prototype_from_constructor(global_object, constructor, intrinsic_default_prototype); |