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

LibJS/Bytecode: Add some basic codegen for ExportStatement

This is by no means complete, but at least a bunch of test-js and
test262 tests start working. :^)
This commit is contained in:
Andreas Kling 2023-06-24 16:07:43 +02:00
parent 5d79431859
commit 06ac768c8b
2 changed files with 28 additions and 0 deletions

View file

@ -470,6 +470,8 @@ public:
virtual void dump(int indent) const override;
virtual Bytecode::CodeGenerationErrorOr<void> generate_bytecode(Bytecode::Generator&) const override;
bool has_export(DeprecatedFlyString const& export_name) const;
bool has_statement() const { return m_statement; }