1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

LibJS: Replace a few dbg() with dbgln()

This commit is contained in:
Linus Groh 2020-10-04 15:44:40 +01:00 committed by Andreas Kling
parent 123f98201e
commit 5de5af60c1
3 changed files with 11 additions and 11 deletions

View file

@ -255,13 +255,13 @@ void VM::throw_exception(Exception* exception)
#ifdef VM_DEBUG
if (exception->value().is_object() && exception->value().as_object().is_error()) {
auto& error = static_cast<Error&>(exception->value().as_object());
dbg() << "Throwing JavaScript Error: " << error.name() << ", " << error.message();
dbgln("Throwing JavaScript Error: {}, {}", error.name(), error.message());
for (ssize_t i = m_call_stack.size() - 1; i >= 0; --i) {
auto function_name = m_call_stack[i].function_name;
if (function_name.is_empty())
function_name = "<anonymous>";
dbg() << " " << function_name;
dbgln(" {}", function_name);
}
}
#endif