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

Commit

Permalink
fix: improve stacktrace capture on Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
btford committed Mar 30, 2014
1 parent 1daa047 commit 46a6fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion long-stack-trace-zone.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Zone.getStacktrace = function () {
// Some implementations of exception handling don't create a stack trace if the exception
// isn't thrown, however it's faster not to actually throw the exception.
var stack = getStacktraceWithUncaughtError();
if (stack.get()) {
if (stack && stack._e.stack) {
Zone.getStacktrace = getStacktraceWithUncaughtError;
return stack;
} else {
Expand Down

0 comments on commit 46a6fbc

Please sign in to comment.