1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

LibJS+LibWeb: Function calls should always go through Interpreter

This ensures that we set up a call frame with |this| and arguments.
This commit is contained in:
Andreas Kling 2020-03-29 00:45:53 +01:00
parent 30440134cb
commit 62d5f79388
2 changed files with 5 additions and 5 deletions

View file

@ -88,7 +88,7 @@ public:
void enter_scope(const ScopeNode&, Vector<Argument>, ScopeType);
void exit_scope(const ScopeNode&);
Value call(Function*, Value this_value, const Vector<Value>& arguments);
Value call(Function*, Value this_value = {}, const Vector<Value>& arguments = {});
CallFrame& push_call_frame()
{