LibJS: Add some helpers and use them to re-implement Console functions

Also add const overloads for some getters.

Also const-qualify Interpreter::join_arguments().
This commit is contained in:
Emanuele Torre 2020-05-04 14:18:15 +02:00 committed by Andreas Kling
commit bc7ed4524e
Notes: sideshowbarker 2024-07-19 06:58:48 +09:00
4 changed files with 47 additions and 21 deletions

View file

@ -165,8 +165,10 @@ public:
Value last_value() const { return m_last_value; }
Console& console() { return m_console; }
const Console& console() const { return m_console; }
String join_arguments();
String join_arguments() const;
Vector<String> get_trace() const;
private:
Interpreter();