ignore invalid error event

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent d8d5d62ef2
commit e6f4556377

View File

@@ -60,6 +60,10 @@ export const ErrorStackParser = {
* @return {Array} of StackFrames
*/
parse: function (error: Error): StackFrame[] {
// https://github.com/rrweb-io/rrweb/issues/782
if (!error) {
return [];
}
if (
// @ts-ignore
typeof error.stacktrace !== 'undefined' ||