'console.trace() not showing all the traces in Electron

For some reason console.trace() doesn't show all traces in Electron application

function test ()
{
  setTimeout(() => console.trace("test"));
}

test();
If you run this snippet and than open browser console, it shows 1 trace line, but if you run it again while console already opened, it shows 4 lines of traces:

enter image description here

In Electron it only shows 1 line:

enter image description here

Any ideas why this happening and how to fix it?

Here is electron fiddle I'm testing it with



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source