You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by qi...@apache.org on 2021/09/24 11:08:53 UTC
[skywalking-client-js] branch master updated: fix window.onerror
TypeError (#72)
This is an automated email from the ASF dual-hosted git repository.
qiuxiafan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-client-js.git
The following commit(s) were added to refs/heads/master by this push:
new 883aa1d fix window.onerror TypeError (#72)
883aa1d is described below
commit 883aa1db2fd00129c7abc46c4b050c9f6593b73c
Author: wuwen <wu...@aliyun.com>
AuthorDate: Fri Sep 24 19:08:48 2021 +0800
fix window.onerror TypeError (#72)
---
CHANGES.md | 1 +
src/errors/js.ts | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/CHANGES.md b/CHANGES.md
index c5fc0ac..9e452e5 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -5,6 +5,7 @@
1. Support setting time interval to report segments.
2. Fix segments report only send once
3. Fix apache/skywalking#7335
+4. Fix apache/skywalking#7793
## 0.6.0
diff --git a/src/errors/js.ts b/src/errors/js.ts
index dd8a726..9ff7f49 100644
--- a/src/errors/js.ts
+++ b/src/errors/js.ts
@@ -33,7 +33,7 @@ class JSErrors extends Base {
col,
message,
collector: options.collector,
- stack: error.stack,
+ stack: error ? error.stack : '',
};
this.traceInfo();
};