mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00:00
LibJS/Bytecode: Add codegen for ImportCall
Also moved most of the AST ImportCall::execute() into a helper so we can share the code.
This commit is contained in:
parent
eb9298b54e
commit
8a5e71256d
8 changed files with 160 additions and 89 deletions
|
@ -2025,6 +2025,7 @@ public:
|
|||
|
||||
virtual void dump(int indent) const override;
|
||||
virtual Completion execute(Interpreter&) const override;
|
||||
virtual Bytecode::CodeGenerationErrorOr<void> generate_bytecode(Bytecode::Generator&) const override;
|
||||
|
||||
private:
|
||||
virtual bool is_import_call() const override { return true; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue