LibJS: Make Interpreter::call() this_value a required argument

Right now the default is an empty value, which we accidentally exposed
in set{Interval,Timeout}() by not providing a custom this value, which
should't happen at all. Let's just make it a required argument instead.
This commit is contained in:
Linus Groh 2020-05-21 13:41:54 +01:00 committed by Andreas Kling
parent 14dffe4721
commit 4e657c370c
Notes: sideshowbarker 2024-07-19 06:17:02 +09:00

View file

@ -104,7 +104,7 @@ public:
void enter_scope(const ScopeNode&, ArgumentVector, ScopeType);
void exit_scope(const ScopeNode&);
Value call(Function&, Value this_value = {}, Optional<MarkedValueList> arguments = {});
Value call(Function&, Value this_value, Optional<MarkedValueList> arguments = {});
Value construct(Function&, Function& new_target, Optional<MarkedValueList> arguments = {});
CallFrame& push_call_frame()