mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +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
|
@ -43,7 +43,7 @@ public:
|
|||
virtual ~Function();
|
||||
virtual void initialize(GlobalObject&) override { }
|
||||
|
||||
virtual Value call(Interpreter&) = 0;
|
||||
virtual Value call() = 0;
|
||||
virtual Value construct(Interpreter&, Function& new_target) = 0;
|
||||
virtual const FlyString& name() const = 0;
|
||||
virtual LexicalEnvironment* create_environment() = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue