mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:37:34 +00:00
LibJS: Make Function::call() not require an Interpreter&
This makes a difference inside ScriptFunction::call(), which will now instantiate a temporary Interpreter if one is not attached to the VM.
This commit is contained in:
parent
be31805e8b
commit
1ff9d33131
42 changed files with 167 additions and 142 deletions
|
@ -206,6 +206,8 @@ public:
|
|||
const LexicalEnvironment* get_this_environment() const;
|
||||
Value get_new_target() const;
|
||||
|
||||
[[nodiscard]] Value call(Function&, Value this_value, Optional<MarkedValueList> arguments);
|
||||
|
||||
private:
|
||||
VM();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue