-
Notifications
You must be signed in to change notification settings - Fork 164
/
Copy pathcaptured-errors.js
443 lines (412 loc) · 19.5 KB
/
captured-errors.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
/* exported CapturedExceptions */
var CapturedExceptions = {};
CapturedExceptions.OPERA_854 = {
message: "Statement on line 44: Type mismatch (usually a non-object value used where an object is required)\n" +
"Backtrace:\n" +
" Line 44 of linked script http://path/to/file.js\n" +
" this.undef();\n" +
" Line 31 of linked script http://path/to/file.js\n" +
" ex = ex || this.createException();\n" +
" Line 18 of linked script http://path/to/file.js\n" +
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
" Line 4 of inline#1 script in http://path/to/file.js\n" +
" printTrace(printStackTrace());\n" +
" Line 7 of inline#1 script in http://path/to/file.js\n" +
" bar(n - 1);\n" +
" Line 11 of inline#1 script in http://path/to/file.js\n" +
" bar(2);\n" +
" Line 15 of inline#1 script in http://path/to/file.js\n" +
" foo();\n" +
"",
'opera#sourceloc': 44
};
CapturedExceptions.OPERA_902 = {
message: "Statement on line 44: Type mismatch (usually a non-object value used where an object is required)\n" +
"Backtrace:\n" +
" Line 44 of linked script http://path/to/file.js\n" +
" this.undef();\n" +
" Line 31 of linked script http://path/to/file.js\n" +
" ex = ex || this.createException();\n" +
" Line 18 of linked script http://path/to/file.js\n" +
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
" Line 4 of inline#1 script in http://path/to/file.js\n" +
" printTrace(printStackTrace());\n" +
" Line 7 of inline#1 script in http://path/to/file.js\n" +
" bar(n - 1);\n" +
" Line 11 of inline#1 script in http://path/to/file.js\n" +
" bar(2);\n" +
" Line 15 of inline#1 script in http://path/to/file.js\n" +
" foo();\n" +
"",
'opera#sourceloc': 44
};
CapturedExceptions.OPERA_927 = {
message: "Statement on line 43: Type mismatch (usually a non-object value used where an object is required)\n" +
"Backtrace:\n" +
" Line 43 of linked script http://path/to/file.js\n" +
" bar(n - 1);\n" +
" Line 31 of linked script http://path/to/file.js\n" +
" bar(2);\n" +
" Line 18 of linked script http://path/to/file.js\n" +
" foo();\n" +
"",
'opera#sourceloc': 43
};
CapturedExceptions.OPERA_964 = {
message: "Statement on line 42: Type mismatch (usually non-object value supplied where object required)\n" +
"Backtrace:\n" +
" Line 42 of linked script http://path/to/file.js\n" +
" this.undef();\n" +
" Line 27 of linked script http://path/to/file.js\n" +
" ex = ex || this.createException();\n" +
" Line 18 of linked script http://path/to/file.js: In function printStackTrace\n" +
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
" Line 4 of inline#1 script in http://path/to/file.js: In function bar\n" +
" printTrace(printStackTrace());\n" +
" Line 7 of inline#1 script in http://path/to/file.js: In function bar\n" +
" bar(n - 1);\n" +
" Line 11 of inline#1 script in http://path/to/file.js: In function foo\n" +
" bar(2);\n" +
" Line 15 of inline#1 script in http://path/to/file.js\n" +
" foo();\n" +
"",
'opera#sourceloc': 42,
stacktrace: " ... Line 27 of linked script http://path/to/file.js\n" +
" ex = ex || this.createException();\n" +
" Line 18 of linked script http://path/to/file.js: In function printStackTrace\n" +
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
" Line 4 of inline#1 script in http://path/to/file.js: In function bar\n" +
" printTrace(printStackTrace());\n" +
" Line 7 of inline#1 script in http://path/to/file.js: In function bar\n" +
" bar(n - 1);\n" +
" Line 11 of inline#1 script in http://path/to/file.js: In function foo\n" +
" bar(2);\n" +
" Line 15 of inline#1 script in http://path/to/file.js\n" +
" foo();\n" +
""
};
CapturedExceptions.OPERA_10 = {
message: "Statement on line 42: Type mismatch (usually non-object value supplied where object required)",
'opera#sourceloc': 42,
stacktrace: " Line 42 of linked script http://path/to/file.js\n" +
" this.undef();\n" +
" Line 27 of linked script http://path/to/file.js\n" +
" ex = ex || this.createException();\n" +
" Line 18 of linked script http://path/to/file.js: In function printStackTrace\n" +
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
" Line 4 of inline#1 script in http://path/to/file.js: In function bar\n" +
" printTrace(printStackTrace());\n" +
" Line 7 of inline#1 script in http://path/to/file.js: In function bar\n" +
" bar(n - 1);\n" +
" Line 11 of inline#1 script in http://path/to/file.js: In function foo\n" +
" bar(2);\n" +
" Line 15 of inline#1 script in http://path/to/file.js\n" +
" foo();\n" +
""
};
CapturedExceptions.OPERA_11 = {
message: "'this.undef' is not a function",
stack: "<anonymous function: run>([arguments not available])@http://path/to/file.js:27\n" +
"bar([arguments not available])@http://domain.com:1234/path/to/file.js:18\n" +
"foo([arguments not available])@http://domain.com:1234/path/to/file.js:11\n" +
"<anonymous function>@http://path/to/file.js:15\n" +
"Error created at <anonymous function>@http://path/to/file.js:15",
stacktrace: "Error thrown at line 42, column 12 in <anonymous function: createException>() in http://path/to/file.js:\n" +
" this.undef();\n" +
"called from line 27, column 8 in <anonymous function: run>(ex) in http://path/to/file.js:\n" +
" ex = ex || this.createException();\n" +
"called from line 18, column 4 in printStackTrace(options) in http://path/to/file.js:\n" +
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
"called from line 4, column 5 in bar(n) in http://path/to/file.js:\n" +
" printTrace(printStackTrace());\n" +
"called from line 7, column 4 in bar(n) in http://path/to/file.js:\n" +
" bar(n - 1);\n" +
"called from line 11, column 4 in foo() in http://path/to/file.js:\n" +
" bar(2);\n" +
"called from line 15, column 3 in http://path/to/file.js:\n" +
" foo();"
};
CapturedExceptions.OPERA_12 = {
message: "Cannot convert 'x' to object",
stack: "<anonymous function>([arguments not available])@http://localhost:8000/ExceptionLab.html:48\n" +
"dumpException3([arguments not available])@http://localhost:8000/ExceptionLab.html:46\n" +
"<anonymous function>([arguments not available])@http://localhost:8000/ExceptionLab.html:1",
stacktrace: "Error thrown at line 48, column 12 in <anonymous function>(x) in http://localhost:8000/ExceptionLab.html:\n" +
" x.undef();\n" +
"called from line 46, column 8 in dumpException3() in http://localhost:8000/ExceptionLab.html:\n" +
" dumpException((function(x) {\n" +
"called from line 1, column 0 in <anonymous function>(event) in http://localhost:8000/ExceptionLab.html:\n" +
" dumpException3();"
};
CapturedExceptions.OPERA_25 = {
message: "Cannot read property 'undef' of null",
name: "TypeError",
stack: "TypeError: Cannot read property 'undef' of null\n" +
" at http://path/to/file.js:47:22\n" +
" at foo (http://path/to/file.js:52:15)\n" +
" at bar (http://path/to/file.js:108:168)"
};
CapturedExceptions.CHROME_15 = {
'arguments': ["undef"],
message: "Object #<Object> has no method 'undef'",
stack: "TypeError: Object #<Object> has no method 'undef'\n" +
" at bar (http://path/to/file.js:13:17)\n" +
" at bar (http://path/to/file.js:16:5)\n" +
" at foo (http://path/to/file.js:20:5)\n" +
" at http://path/to/file.js:24:4"
};
CapturedExceptions.CHROME_36 = {
message: "Default error",
name: "Error",
stack: "Error: Default error\n" +
" at dumpExceptionError (http://localhost:8080/file.js:41:27)\n" +
" at HTMLButtonElement.onclick (http://localhost:8080/file.js:107:146)\n" +
" at I.e.fn.(anonymous function) [as index] (http://localhost:8080/file.js:10:3651)"
};
// can be generated when Webpack is built with { devtool: eval }
CapturedExceptions.CHROME_XX_WEBPACK = {
message: "Cannot read property 'error' of undefined",
name: "TypeError",
stack: "TypeError: Cannot read property 'error' of undefined\n" +
" at TESTTESTTEST.eval(webpack:///./src/components/test/test.jsx?:295:108)\n" +
" at TESTTESTTEST.render(webpack:///./src/components/test/test.jsx?:272:32)\n" +
" at TESTTESTTEST.tryRender(webpack:///./~/react-transform-catch-errors/lib/index.js?:34:31)\n" +
" at TESTTESTTEST.proxiedMethod(webpack:///./~/react-proxy/modules/createPrototypeProxy.js?:44:30)"
};
CapturedExceptions.FIREFOX_3 = {
fileName: "http://127.0.0.1:8000/js/stacktrace.js",
lineNumber: 44,
message: "this.undef is not a function",
name: "TypeError",
stack: "()@http://127.0.0.1:8000/js/stacktrace.js:44\n" +
"(null)@http://127.0.0.1:8000/js/stacktrace.js:31\n" +
"printStackTrace()@http://127.0.0.1:8000/js/stacktrace.js:18\n" +
"bar(1)@http://127.0.0.1:8000/js/file.js:13\n" +
"bar(2)@http://127.0.0.1:8000/js/file.js:16\n" +
"foo()@http://127.0.0.1:8000/js/file.js:20\n" +
"@http://127.0.0.1:8000/js/file.js:24\n" +
""
};
CapturedExceptions.FIREFOX_7 = {
fileName: "file:///G:/js/stacktrace.js",
lineNumber: 44,
stack: "()@file:///G:/js/stacktrace.js:44\n" +
"(null)@file:///G:/js/stacktrace.js:31\n" +
"printStackTrace()@file:///G:/js/stacktrace.js:18\n" +
"bar(1)@file:///G:/js/file.js:13\n" +
"bar(2)@file:///G:/js/file.js:16\n" +
"foo()@file:///G:/js/file.js:20\n" +
"@file:///G:/js/file.js:24\n" +
""
};
CapturedExceptions.FIREFOX_14 = {
message: "x is null",
stack: "@http://path/to/file.js:48\n" +
"dumpException3@http://path/to/file.js:52\n" +
"onclick@http://path/to/file.js:1\n" +
"",
fileName: "http://path/to/file.js",
lineNumber: 48
};
CapturedExceptions.FIREFOX_31 = {
message: "Default error",
name: "Error",
stack: "foo@http://path/to/file.js:41:13\n" +
"bar@http://path/to/file.js:1:1\n" +
".plugin/e.fn[c]/<@http://path/to/file.js:1:1\n" +
"",
fileName: "http://path/to/file.js",
lineNumber: 41,
columnNumber: 12
};
CapturedExceptions.FIREFOX_43_EVAL = {
columnNumber: 30,
fileName: 'http://localhost:8080/file.js line 25 > eval line 2 > eval',
lineNumber: 1,
message: 'message string',
stack: 'baz@http://localhost:8080/file.js line 26 > eval line 2 > eval:1:30\n' +
'foo@http://localhost:8080/file.js line 26 > eval:2:96\n' +
'@http://localhost:8080/file.js line 26 > eval:4:18\n' +
'speak@http://localhost:8080/file.js:26:17\n' +
'@http://localhost:8080/file.js:33:9'
};
// Internal errors sometimes thrown by Firefox
// More here: https://developer.mozilla.org/en-US/docs/Mozilla/Errors
//
// Note that such errors are instanceof "Exception", not "Error"
CapturedExceptions.FIREFOX_44_NS_EXCEPTION = {
message: "",
name: "NS_ERROR_FAILURE",
stack: "[2]</Bar.prototype._baz/</<@http://path/to/file.js:703:28\n" +
"App.prototype.foo@file:///path/to/file.js:15:2\n" +
"bar@file:///path/to/file.js:20:3\n" +
"@file:///path/to/index.html:23:1\n" + // inside <script> tag
"",
fileName: "http://path/to/file.js",
columnNumber: 0,
lineNumber: 703,
result: 2147500037
};
CapturedExceptions.FIREFOX_50_RESOURCE_URL = {
stack: 'render@resource://path/data/content/bundle.js:5529:16\n' +
'dispatchEvent@resource://path/data/content/vendor.bundle.js:18:23028\n' +
'wrapped@resource://path/data/content/bundle.js:7270:25',
fileName: 'resource://path/data/content/bundle.js',
lineNumber: 5529,
columnNumber: 16,
message: 'this.props.raw[this.state.dataSource].rows is undefined',
name: 'TypeError'
};
CapturedExceptions.SAFARI_6 = {
message: "'null' is not an object (evaluating 'x.undef')",
stack: "@http://path/to/file.js:48\n" +
"dumpException3@http://path/to/file.js:52\n" +
"onclick@http://path/to/file.js:82\n" +
"[native code]",
line: 48,
sourceURL: "http://path/to/file.js"
};
CapturedExceptions.SAFARI_7 = {
message: "'null' is not an object (evaluating 'x.undef')",
name: "TypeError",
stack: "http://path/to/file.js:48:22\n" +
"foo@http://path/to/file.js:52:15\n" +
"bar@http://path/to/file.js:108:107",
line: 47,
sourceURL: "http://path/to/file.js"
};
CapturedExceptions.SAFARI_8 = {
message: "null is not an object (evaluating 'x.undef')",
name: "TypeError",
stack: "http://path/to/file.js:47:22\n" +
"foo@http://path/to/file.js:52:15\n" +
"bar@http://path/to/file.js:108:23",
line: 47,
column: 22,
sourceURL: "http://path/to/file.js"
};
CapturedExceptions.SAFARI_8_EVAL = {
message: "Can't find variable: getExceptionProps",
name: "ReferenceError",
stack: "eval code\n" +
"eval@[native code]\n" +
"foo@http://path/to/file.js:58:21\n" +
"bar@http://path/to/file.js:109:91",
line: 1,
column: 18
};
CapturedExceptions.IE_9 = {
message: "Unable to get property 'undef' of undefined or null reference",
description: "Unable to get property 'undef' of undefined or null reference"
};
CapturedExceptions.IE_10 = {
message: "Unable to get property 'undef' of undefined or null reference",
stack: "TypeError: Unable to get property 'undef' of undefined or null reference\n" +
" at Anonymous function (http://path/to/file.js:48:13)\n" +
" at foo (http://path/to/file.js:46:9)\n" +
" at bar (http://path/to/file.js:82:1)",
description: "Unable to get property 'undef' of undefined or null reference",
number: -2146823281
};
CapturedExceptions.IE_11 = {
message: "Unable to get property 'undef' of undefined or null reference",
name: "TypeError",
stack: "TypeError: Unable to get property 'undef' of undefined or null reference\n" +
" at Anonymous function (http://path/to/file.js:47:21)\n" +
" at foo (http://path/to/file.js:45:13)\n" +
" at bar (http://path/to/file.js:108:1)",
description: "Unable to get property 'undef' of undefined or null reference",
number: -2146823281
};
CapturedExceptions.IE_11_EVAL = {
message: "'getExceptionProps' is undefined",
name: "ReferenceError",
stack: "ReferenceError: 'getExceptionProps' is undefined\n" +
" at eval code (eval code:1:1)\n" +
" at foo (http://path/to/file.js:58:17)\n" +
" at bar (http://path/to/file.js:109:1)",
description: "'getExceptionProps' is undefined",
number: -2146823279
};
CapturedExceptions.CHROME_48_BLOB = {
message: "Error: test",
name: "Error",
stack: "Error: test\n" +
" at Error (native)\n" +
" at s (blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379:31:29146)\n" +
" at Object.d [as add] (blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379:31:30039)\n" +
" at blob:http%3A//localhost%3A8080/d4eefe0f-361a-4682-b217-76587d9f712a:15:10978\n" +
" at blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379:1:6911\n" +
" at n.fire (blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379:7:3019)\n" +
" at n.handle (blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379:7:2863)"
};
CapturedExceptions.CHROME_48_EVAL = {
message: 'message string',
name: 'Error',
stack: 'Error: message string\n' +
'at baz (eval at foo (eval at speak (http://localhost:8080/file.js:21:17)), <anonymous>:1:30)\n' +
'at foo (eval at speak (http://localhost:8080/file.js:21:17), <anonymous>:2:96)\n' +
'at eval (eval at speak (http://localhost:8080/file.js:21:17), <anonymous>:4:18)\n' +
'at Object.speak (http://localhost:8080/file.js:21:17)\n' +
'at http://localhost:8080/file.js:31:13\n'
};
CapturedExceptions.PHANTOMJS_1_19 = {
stack: "Error: foo\n" +
" at file:///path/to/file.js:878\n" +
" at foo (http://path/to/file.js:4283)\n" +
" at http://path/to/file.js:4287"
};
CapturedExceptions.ANDROID_REACT_NATIVE = {
message: 'Error: test',
name: 'Error',
stack: 'Error: test\n' +
'at render(/home/username/sample-workspace/sampleapp.collect.react/src/components/GpsMonitorScene.js:78:24)\n' +
'at _renderValidatedComponentWithoutOwnerOrContext(/home/username/sample-workspace/sampleapp.collect.react/node_modules/react-native/Libraries/Renderer/src/renderers/shared/stack/reconciler/ReactCompositeComponent.js:1050:29)\n' +
'at _renderValidatedComponent(/home/username/sample-workspace/sampleapp.collect.react/node_modules/react-native/Libraries/Renderer/src/renderers/shared/stack/reconciler/ReactCompositeComponent.js:1075:15)\n' +
'at renderedElement(/home/username/sample-workspace/sampleapp.collect.react/node_modules/react-native/Libraries/Renderer/src/renderers/shared/stack/reconciler/ReactCompositeComponent.js:484:29)\n' +
'at _currentElement(/home/username/sample-workspace/sampleapp.collect.react/node_modules/react-native/Libraries/Renderer/src/renderers/shared/stack/reconciler/ReactCompositeComponent.js:346:40)\n' +
'at child(/home/username/sample-workspace/sampleapp.collect.react/node_modules/react-native/Libraries/Renderer/src/renderers/shared/stack/reconciler/ReactReconciler.js:68:25)\n' +
'at children(/home/username/sample-workspace/sampleapp.collect.react/node_modules/react-native/Libraries/Renderer/src/renderers/shared/stack/reconciler/ReactMultiChild.js:264:10)\n' +
'at this(/home/username/sample-workspace/sampleapp.collect.react/node_modules/react-native/Libraries/Renderer/src/renderers/native/ReactNativeBaseComponent.js:74:41)\n'
};
CapturedExceptions.ANDROID_REACT_NATIVE_PROD = {
message: 'Error: test',
name: 'Error',
stack: '[email protected]:12:1917\n' +
'[email protected]:12:2336\n' +
'[email protected]:258:1497\n' +
'[native code]\n' +
'[email protected]:252:8508\n' +
'[native code]\n' +
'[email protected]:252:7291\n' +
'[native code]\n' +
'[email protected]:252:4735\n' +
'[native code]\n' +
'[email protected]:79:142\n' +
'[email protected]:79:459\n' +
'[email protected]:79:580\n' +
'[email protected]:95:365\n' +
'[email protected]:95:567\n' +
'[email protected]:146:501\n' +
'[email protected]:146:604\n' +
'forEach@[native code]\n' +
'[email protected]:149:80\n' +
'[email protected]:146:1432\n' +
'[email protected]:157:88\n' +
'[email protected]:157:174\n' +
'index.android.bundle:156:572\n' +
'[email protected]:93:276\n' +
'[email protected]:93:60\n' +
'[email protected]:177:596\n' +
'[email protected]:188:464\n' +
'[email protected]:176:358\n' +
'[email protected]:93:90\n' +
'[email protected]:93:150\n' +
'[email protected]:156:544\n' +
'[email protected]:156:918\n' +
'[email protected]:29:3016\n' +
'index.android.bundle:29:955\n' +
'[email protected]:29:2417\n' +
'[email protected]:29:927\n' +
'[native code]'
};