summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-06-07 20:05:50 +0100
committerLinus Groh <mail@linusgroh.de>2021-06-07 20:05:50 +0100
commit2b8a2542a0c46f0eac02d49059f40f9cfb3a7976 (patch)
tree81aa91868bcf941da91cf0e9e8a6212dc0881630 /Userland/Libraries
parentfa9bad912effbe2cf3334e29a7df4908a3174022 (diff)
downloadserenity-2b8a2542a0c46f0eac02d49059f40f9cfb3a7976.zip
LibJS: Add bytecode generation for DebuggerStatement
No-op. :^)
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibJS/AST.h1
-rw-r--r--Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp5
2 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibJS/AST.h b/Userland/Libraries/LibJS/AST.h
index 45380bc975..6420845308 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<Bytecode::Register> generate_bytecode(Bytecode::Generator&) const override;
};
template<typename C>
diff --git a/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp b/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp
index 0230c526f5..1745f75e20 100644
--- a/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp
+++ b/Userland/Libraries/LibJS/Bytecode/ASTCodegen.cpp
@@ -298,4 +298,9 @@ Optional<Bytecode::Register> ContinueStatement::generate_bytecode(Bytecode::Gene
return {};
}
+Optional<Bytecode::Register> DebuggerStatement::generate_bytecode(Bytecode::Generator&) const
+{
+ return {};
+}
+
}