Skip to content

Commit 955187a

Browse files
authored
bug: Check if stack is available before reading url for ignoreUrl (#1083)
1 parent 1ad6e53 commit 955187a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/raven.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ Raven.prototype = {
453453
// stack[0] is `throw new Error(msg)` call itself, we are interested in the frame that was just before that, stack[1]
454454
var initialCall = stack.stack[1];
455455

456-
var fileurl = initialCall.url || '';
456+
var fileurl = (initialCall && initialCall.url) || '';
457457

458458
if (
459459
!!this._globalOptions.ignoreUrls.test &&

0 commit comments

Comments
 (0)