1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 08:28:11 +00:00

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 :^)
This commit is contained in:
networkException 2022-10-15 22:38:31 +02:00 committed by Ali Mohammad Pur
parent 5e26bb7643
commit afeff4cebb
3 changed files with 4 additions and 4 deletions

View file

@ -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: