Closed
Bug 1778762
Opened 3 years ago
Closed 3 years ago
structuredClone does not clone errors stack properly
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1774866
People
(Reporter: zloirock, Unassigned)
Details
Attachments
(1 obsolete file)
Steps to reproduce:
var error = Error(5);
error.stack; // => '@debugger eval code:1:6\n'
var cone = structuredClone(error);
clone.stack; // => ''
Actual results:
^
Expected results:
error stack should be the same
This should have been fixed already in Nightly (104) by bug 1774866. Are you using Beta by any chance?
Flags: needinfo?(zloirock)
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
Yes, I tried 104 and it's fixed, thanks.
However, it's not fixed on DOMException
:
var error = DOMException(5);
error.stack; // => '@debugger eval code:1:6\n'
var clone = structuredClone(error);
clone.stack; // => ''
Thanks. That is bug 1777321.
Comment 7•3 years ago
|
||
Updated•3 years ago
|
Assignee: nobody → ystartsev
Comment 8•3 years ago
|
||
Comment on attachment 9286051 [details]
Bug 1778762 - Reimplement mLoadingFinished check; r?asuth
Revision D152181 was moved to bug 1779762. Setting attachment 9286051 [details] to obsolete.
Attachment #9286051 -
Attachment is obsolete: true
Updated•3 years ago
|
Assignee: ystartsev → nobody
You need to log in
before you can comment on or make changes to this bug.
Description
•