summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Console.h
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2022-10-15 22:38:31 +0200
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-10-16 02:06:02 +0330
commitafeff4cebb5daad892e3c3f5946fa0a2e7aaeb65 (patch)
tree20d4914e9c72fe846f005f982637a784e9b5999c /Userland/Libraries/LibJS/Console.h
parent5e26bb764308a87082c769eff65755ac2bcf23d9 (diff)
downloadserenity-afeff4cebb5daad892e3c3f5946fa0a2e7aaeb65.zip
LibJS+js: Disable console debug messages outside Serenity only for `js`
Previously we would disable console debug messages on all non Serenity platforms as it caused double printing on lagom `js`. This patch limits this to the `js` utility, allowing LibWeb to print debug messages regardless of the operating system :^)
Diffstat (limited to 'Userland/Libraries/LibJS/Console.h')
-rw-r--r--Userland/Libraries/LibJS/Console.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Console.h b/Userland/Libraries/LibJS/Console.h
index 85a979485b..470720671e 100644
--- a/Userland/Libraries/LibJS/Console.h
+++ b/Userland/Libraries/LibJS/Console.h
@@ -81,7 +81,7 @@ public:
ThrowCompletionOr<Value> time_log();
ThrowCompletionOr<Value> time_end();
- void output_debug_message(LogLevel log_level, String output) const;
+ void output_debug_message(LogLevel log_level, String const& output) const;
void report_exception(JS::Error const&, bool) const;
private: