mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +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:
parent
92815f313a
commit
bc7ed4524e
Notes:
sideshowbarker
2024-07-19 06:58:48 +09:00
Author: https://github.com/emanuele6
Commit: bc7ed4524e
Pull-request: https://github.com/SerenityOS/serenity/pull/2098
Reviewed-by: https://github.com/awesomekling
4 changed files with 47 additions and 21 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue