diff --git a/Userland/Libraries/LibJS/AST.h b/Userland/Libraries/LibJS/AST.h index 45380bc975e..64208453081 100644 --- a/Userland/Libraries/LibJS/AST.h +++ b/Userland/Libraries/LibJS/AST.h @@ -1319,6 +1319,7 @@ public: } virtual Value execute(Interpreter&, GlobalObject&) const override; + virtual Optional generate_bytecode(Bytecode::Generator&) const override; }; template diff --git a/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp b/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp index 0230c526f55..1745f75e20c 100644 --- a/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp +++ b/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp @@ -298,4 +298,9 @@ Optional ContinueStatement::generate_bytecode(Bytecode::Gene return {}; } +Optional DebuggerStatement::generate_bytecode(Bytecode::Generator&) const +{ + return {}; +} + }