1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

LibJS: Implement (no-op) debugger statement

This commit is contained in:
Linus Groh 2020-04-30 17:26:27 +01:00 committed by Andreas Kling
parent ea839861e5
commit 43c1fa9965
9 changed files with 41 additions and 1 deletions

View file

@ -1396,6 +1396,12 @@ Value SequenceExpression::execute(Interpreter& interpreter) const
return last_value;
}
Value DebuggerStatement::execute(Interpreter&) const
{
dbg() << "Sorry, no JavaScript debugger available (yet)!";
return js_undefined();
}
void ScopeNode::add_variables(NonnullRefPtrVector<VariableDeclaration> variables)
{
m_variables.append(move(variables));