1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:07:34 +00:00

LibJS/Bytecode: Handle ImportStatement in codegen

There is nothing to do here at runtime as imports are handled in
`Interpreter::run`.
This commit is contained in:
Daniel Bertalan 2023-06-27 20:46:41 +02:00 committed by Andreas Kling
parent 363bf114c0
commit 11a7014b4e
2 changed files with 7 additions and 0 deletions

View file

@ -373,6 +373,8 @@ public:
virtual void dump(int indent) const override;
virtual Bytecode::CodeGenerationErrorOr<void> generate_bytecode(Bytecode::Generator&) const override;
bool has_bound_name(DeprecatedFlyString const& name) const;
Vector<ImportEntry> const& entries() const { return m_entries; }
ModuleRequest const& module_request() const { return m_module_request; }

View file

@ -2867,4 +2867,9 @@ Bytecode::CodeGenerationErrorOr<void> ExportStatement::generate_bytecode(Bytecod
return {};
}
Bytecode::CodeGenerationErrorOr<void> ImportStatement::generate_bytecode(Bytecode::Generator&) const
{
return {};
}
}