File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 31
31
// content.p = promise rejection
32
32
// content.f = function call the Sentry
33
33
if (
34
- ( content . e ||
35
- content . p ||
34
+ ( 'e' in content ||
35
+ 'p' in content ||
36
36
( content . f && content . f . indexOf ( 'capture' ) > - 1 ) ||
37
37
( content . f && content . f . indexOf ( 'showReportDialog' ) > - 1 ) ) &&
38
38
lazy
139
139
140
140
// And now capture all previously caught exceptions
141
141
for ( var i = 0 ; i < data . length ; i ++ ) {
142
- if ( data [ i ] . e && tracekitErrorHandler ) {
142
+ if ( 'e' in data [ i ] && tracekitErrorHandler ) {
143
143
tracekitErrorHandler . apply ( _window , data [ i ] . e ) ;
144
- } else if ( data [ i ] . p && tracekitUnhandledRejectionHandler ) {
144
+ } else if ( 'p' in data [ i ] && tracekitUnhandledRejectionHandler ) {
145
145
tracekitUnhandledRejectionHandler . apply ( _window , [ data [ i ] . p ] ) ;
146
146
}
147
147
}
You can’t perform that action at this time.
0 commit comments