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

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
parent 92815f313a
commit bc7ed4524e
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();