browser(firefox): report pageerrors without stack properties (#4166)

This commit is contained in:
Joel Einbinder 2020-10-19 02:23:53 -07:00 committed by GitHub
parent ef3d3ca58e
commit 4f7d65fe9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -1,2 +1,2 @@
1193
Changed: joel.einbinder@gmail.com Fri 16 Oct 2020 01:22:55 AM PDT
1194
Changed: joel.einbinder@gmail.com Fri 16 Oct 2020 01:52:53 AM PDT

View file

@ -375,7 +375,7 @@ class PageAgent {
this._browserPage.emit('pageUncaughtError', {
frameId: frame.id(),
message: errorEvent.message,
stack: errorEvent.error ? errorEvent.error.stack : '',
stack: errorEvent.error && typeof errorEvent.error.stack === 'string' ? errorEvent.error.stack : '',
});
}