@@ -165,11 +165,9 @@ TraceKit.report = (function reportModuleWrapper() {
165
165
location . func = TraceKit . computeStackTrace . guessFunctionName ( location . url , location . line ) ;
166
166
location . context = TraceKit . computeStackTrace . gatherContext ( location . url , location . line ) ;
167
167
stack = {
168
- 'mode' : 'onerror' ,
169
168
'message' : message ,
170
169
'url' : document . location . href ,
171
- 'stack' : [ location ] ,
172
- 'useragent' : navigator . userAgent
170
+ 'stack' : [ location ]
173
171
} ;
174
172
notifyHandlers ( stack , true ) ;
175
173
}
@@ -268,7 +266,6 @@ TraceKit.report = (function reportModuleWrapper() {
268
266
* s.stack[i].line - line number, if known
269
267
* s.stack[i].column - column number, if known
270
268
* s.stack[i].context - an array of source code lines; the middle element corresponds to the correct line#
271
- * s.mode - 'stack', 'stacktrace', 'multiline', 'callers', 'onerror', or 'failed' -- method used to collect the stack trace
272
269
*
273
270
* Supports:
274
271
* - Firefox: full stack trace with line numbers and unreliable column
@@ -685,12 +682,10 @@ TraceKit.computeStackTrace = (function computeStackTraceWrapper() {
685
682
}
686
683
687
684
return {
688
- 'mode' : 'stack' ,
689
685
'name' : ex . name ,
690
686
'message' : ex . message ,
691
687
'url' : document . location . href ,
692
- 'stack' : stack ,
693
- 'useragent' : navigator . userAgent
688
+ 'stack' : stack
694
689
} ;
695
690
}
696
691
@@ -743,12 +738,10 @@ TraceKit.computeStackTrace = (function computeStackTraceWrapper() {
743
738
}
744
739
745
740
return {
746
- 'mode' : 'stacktrace' ,
747
741
'name' : ex . name ,
748
742
'message' : ex . message ,
749
743
'url' : document . location . href ,
750
- 'stack' : stack ,
751
- 'useragent' : navigator . userAgent
744
+ 'stack' : stack
752
745
} ;
753
746
}
754
747
@@ -855,12 +848,10 @@ TraceKit.computeStackTrace = (function computeStackTraceWrapper() {
855
848
}
856
849
857
850
return {
858
- 'mode' : 'multiline' ,
859
851
'name' : ex . name ,
860
852
'message' : lines [ 0 ] ,
861
853
'url' : document . location . href ,
862
- 'stack' : stack ,
863
- 'useragent' : navigator . userAgent
854
+ 'stack' : stack
864
855
} ;
865
856
}
866
857
@@ -988,12 +979,10 @@ TraceKit.computeStackTrace = (function computeStackTraceWrapper() {
988
979
}
989
980
990
981
var result = {
991
- 'mode' : 'callers' ,
992
982
'name' : ex . name ,
993
983
'message' : ex . message ,
994
984
'url' : document . location . href ,
995
- 'stack' : stack ,
996
- 'useragent' : navigator . userAgent
985
+ 'stack' : stack
997
986
} ;
998
987
augmentStackTraceWithInitialElement ( result , ex . sourceURL || ex . fileName , ex . line || ex . lineNumber , ex . message || ex . description ) ;
999
988
return result ;
@@ -1055,9 +1044,7 @@ TraceKit.computeStackTrace = (function computeStackTraceWrapper() {
1055
1044
}
1056
1045
}
1057
1046
1058
- return {
1059
- 'mode' : 'failed'
1060
- } ;
1047
+ return { } ;
1061
1048
}
1062
1049
1063
1050
/**
0 commit comments