Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 46a6fbc

Browse files
committed
fix: improve stacktrace capture on Safari
1 parent 1daa047 commit 46a6fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: long-stack-trace-zone.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Zone.getStacktrace = function () {
3535
// Some implementations of exception handling don't create a stack trace if the exception
3636
// isn't thrown, however it's faster not to actually throw the exception.
3737
var stack = getStacktraceWithUncaughtError();
38-
if (stack.get()) {
38+
if (stack && stack._e.stack) {
3939
Zone.getStacktrace = getStacktraceWithUncaughtError;
4040
return stack;
4141
} else {

0 commit comments

Comments
 (0)