diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/AbstractOperations.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/AbstractOperations.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/AbstractOperations.h b/Userland/Libraries/LibJS/Runtime/AbstractOperations.h new file mode 100644 index 0000000000..df9ecf40df --- /dev/null +++ b/Userland/Libraries/LibJS/Runtime/AbstractOperations.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2020-2021, Linus Groh <linusg@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <AK/Forward.h> +#include <LibJS/Forward.h> +#include <LibJS/Runtime/Value.h> + +namespace JS { + +Value require_object_coercible(GlobalObject&, Value); +Function* get_method(GlobalObject& global_object, Value, PropertyName const&); +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); + +} |