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 <wuwen...@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(); };