mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03:00
LibJS: Add empty bytecode generation for VariableDeclaration
These will be partly handled by the relevant ScopeNode due to hoisting, same basic idea as function declarations. VariableDeclaration needs to do some work, but let's stub it out first and start empty.
This commit is contained in:
parent
67cc31a74f
commit
941be2dcc2
Notes:
sideshowbarker
2024-07-18 12:28:51 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/941be2dcc23
@ -997,6 +997,7 @@ public:
|
||||
|
||||
virtual Value execute(Interpreter&, GlobalObject&) const override;
|
||||
virtual void dump(int indent) const override;
|
||||
virtual void generate_bytecode(Bytecode::Generator&) const override;
|
||||
|
||||
const NonnullRefPtrVector<VariableDeclarator>& declarations() const { return m_declarations; }
|
||||
|
||||
|
@ -556,6 +556,10 @@ void FunctionDeclaration::generate_bytecode(Bytecode::Generator&) const
|
||||
{
|
||||
}
|
||||
|
||||
void VariableDeclaration::generate_bytecode(Bytecode::Generator&) const
|
||||
{
|
||||
}
|
||||
|
||||
void CallExpression::generate_bytecode(Bytecode::Generator& generator) const
|
||||
{
|
||||
m_callee->generate_bytecode(generator);
|
||||
|
Loading…
Reference in New Issue
Block a user