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
commit 43c1fa9965
Notes: sideshowbarker 2024-07-19 07:07:45 +09:00
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));