mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 19:07:35 +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:
parent
363bf114c0
commit
11a7014b4e
2 changed files with 7 additions and 0 deletions
|
@ -373,6 +373,8 @@ public:
|
||||||
|
|
||||||
virtual void dump(int indent) const override;
|
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;
|
bool has_bound_name(DeprecatedFlyString const& name) const;
|
||||||
Vector<ImportEntry> const& entries() const { return m_entries; }
|
Vector<ImportEntry> const& entries() const { return m_entries; }
|
||||||
ModuleRequest const& module_request() const { return m_module_request; }
|
ModuleRequest const& module_request() const { return m_module_request; }
|
||||||
|
|
|
@ -2867,4 +2867,9 @@ Bytecode::CodeGenerationErrorOr<void> ExportStatement::generate_bytecode(Bytecod
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Bytecode::CodeGenerationErrorOr<void> ImportStatement::generate_bytecode(Bytecode::Generator&) const
|
||||||
|
{
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue