LibJS: Fix build with VM_DEBUG defined

This commit is contained in:
Luke 2020-11-21 23:38:50 +00:00 committed by Andreas Kling
parent 840c3b501d
commit bbc0487ced
Notes: sideshowbarker 2024-07-19 01:19:54 +09:00

View file

@ -268,7 +268,7 @@ void VM::throw_exception(Exception* exception)
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;
auto function_name = m_call_stack[i]->function_name;
if (function_name.is_empty())
function_name = "<anonymous>";
dbgln(" {}", function_name);