diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-01-25 14:58:25 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-25 22:09:13 +0000 |
commit | 5c4b1e3d23010882ac040d9227201c3141dbcf57 (patch) | |
tree | 7a83dbf0b89bf8f240fe18ed8f01c3251bb7b409 /Userland/Libraries/LibJS/Runtime/AbstractOperations.h | |
parent | 5fac41f733ace1135412c00327d8cc8d21c342ff (diff) | |
download | serenity-5c4b1e3d23010882ac040d9227201c3141dbcf57.zip |
LibJS: Remove erroneous variadic template from some call overloads
These function do not use the Args variadic template.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/AbstractOperations.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/AbstractOperations.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/AbstractOperations.h b/Userland/Libraries/LibJS/Runtime/AbstractOperations.h index 98c4beb624..6587d9d0d2 100644 --- a/Userland/Libraries/LibJS/Runtime/AbstractOperations.h +++ b/Userland/Libraries/LibJS/Runtime/AbstractOperations.h @@ -54,13 +54,11 @@ ThrowCompletionOr<Value> perform_eval(Value, GlobalObject&, CallerMode, EvalMode ThrowCompletionOr<void> eval_declaration_instantiation(VM& vm, GlobalObject& global_object, Program const& program, Environment* variable_environment, Environment* lexical_environment, PrivateEnvironment* private_environment, bool strict); // 7.3.14 Call ( F, V [ , argumentsList ] ), https://tc39.es/ecma262/#sec-call -template<typename... Args> ALWAYS_INLINE ThrowCompletionOr<Value> call(GlobalObject& global_object, Value function, Value this_value, MarkedValueList arguments_list) { return call_impl(global_object, function, this_value, move(arguments_list)); } -template<typename... Args> ALWAYS_INLINE ThrowCompletionOr<Value> call(GlobalObject& global_object, Value function, Value this_value, Optional<MarkedValueList> arguments_list) { return call_impl(global_object, function, this_value, move(arguments_list)); @@ -78,13 +76,11 @@ ALWAYS_INLINE ThrowCompletionOr<Value> call(GlobalObject& global_object, Value f return call_impl(global_object, function, this_value); } -template<typename... Args> ALWAYS_INLINE ThrowCompletionOr<Value> call(GlobalObject& global_object, FunctionObject& function, Value this_value, MarkedValueList arguments_list) { return call_impl(global_object, function, this_value, move(arguments_list)); } -template<typename... Args> ALWAYS_INLINE ThrowCompletionOr<Value> call(GlobalObject& global_object, FunctionObject& function, Value this_value, Optional<MarkedValueList> arguments_list) { return call_impl(global_object, function, this_value, move(arguments_list)); |