mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:47:36 +00:00
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:
parent
14dffe4721
commit
4e657c370c
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue