thrown exceptions on console evaluation only have 1 `debugger eval code` frame
Categories
(DevTools :: Console, defect, P1)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Steps to reproduce
- Open the webconsole
- Evaluate the following
function a() { b(); }
function b() { c(); }
function c() { bleah; }
a()
- Expand the error message
Expected results
I do see the multiple frames that led to the error.
Actual results
I only see the c
frame (the last debugger eval code
one in the stack)
Assignee | ||
Comment 1•5 years ago
|
||
We now have stacktrace for expressions evaluated in the console
that throws, and we are stripping any frames that are devtools
internals.
But the way we were doing this meant that we were only having
one debugger eval code
frame, even if the expression in the console
had multiple frames.
Also, if an expression was throwing without having any debugger eval code
frame (e.g. expression with SyntaxError), we were sending internal
frames.
This patch should fix those 2 cases and a linux 64 ccov intermittent
caused by a different line number for an internal frame in a fixture
packet.
Tests cases are added to the existing mochitest to ensure this
works as expected.
Comment 3•5 years ago
|
||
bugherder |
Description
•