mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:17:35 +00:00
LibJS: Move Interpreter::get_trace() to ConsoleClient
Having it globally on the interpreter is confusing as the last call frame is skipped, which is specific to console.trace().
This commit is contained in:
parent
9e3127785e
commit
a48080f62d
6 changed files with 14 additions and 12 deletions
|
@ -99,7 +99,7 @@ JS::Value BrowserConsoleClient::trace()
|
|||
{
|
||||
StringBuilder html;
|
||||
html.append(interpreter().join_arguments());
|
||||
auto trace = interpreter().get_trace();
|
||||
auto trace = get_trace();
|
||||
for (auto& function_name : trace) {
|
||||
if (function_name.is_empty())
|
||||
function_name = "<anonymous>";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue