ignore invalid error event
This commit is contained in:
@@ -60,6 +60,10 @@ export const ErrorStackParser = {
|
|||||||
* @return {Array} of StackFrames
|
* @return {Array} of StackFrames
|
||||||
*/
|
*/
|
||||||
parse: function (error: Error): StackFrame[] {
|
parse: function (error: Error): StackFrame[] {
|
||||||
|
// https://github.com/rrweb-io/rrweb/issues/782
|
||||||
|
if (!error) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
if (
|
if (
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
typeof error.stacktrace !== 'undefined' ||
|
typeof error.stacktrace !== 'undefined' ||
|
||||||
|
|||||||
Reference in New Issue
Block a user