forked from stacktracejs/stacktrace.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCapturedExceptions.js
More file actions
272 lines (257 loc) · 15.2 KB
/
CapturedExceptions.js
File metadata and controls
272 lines (257 loc) · 15.2 KB
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
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 file://localhost/G:/js/stacktrace.js\n" +
" this.undef();\n" +
" Line 31 of linked script file://localhost/G:/js/stacktrace.js\n" +
" ex = ex || this.createException();\n" +
" Line 18 of linked script file://localhost/G:/js/stacktrace.js\n" +
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
" Line 4 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
" printTrace(printStackTrace());\n" +
" Line 7 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
" bar(n - 1);\n" +
" Line 11 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
" bar(2);\n" +
" Line 15 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\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 file://localhost/G:/js/stacktrace.js\n" +
" this.undef();\n" +
" Line 31 of linked script file://localhost/G:/js/stacktrace.js\n" +
" ex = ex || this.createException();\n" +
" Line 18 of linked script file://localhost/G:/js/stacktrace.js\n" +
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
" Line 4 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
" printTrace(printStackTrace());\n" +
" Line 7 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
" bar(n - 1);\n" +
" Line 11 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
" bar(2);\n" +
" Line 15 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\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 file://localhost/G:/js/stacktrace.js\n" +
" this.undef();\n" +
" Line 31 of linked script file://localhost/G:/js/stacktrace.js\n" +
" ex = ex || this.createException();\n" +
" Line 18 of linked script file://localhost/G:/js/stacktrace.js\n" +
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
" Line 4 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
" printTrace(printStackTrace());\n" +
" Line 7 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
" bar(n - 1);\n" +
" Line 11 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
" bar(2);\n" +
" Line 15 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\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 file://localhost/G:/js/stacktrace.js\n" +
" this.undef();\n" +
" Line 27 of linked script file://localhost/G:/js/stacktrace.js\n" +
" ex = ex || this.createException();\n" +
" Line 18 of linked script file://localhost/G:/js/stacktrace.js: In function printStackTrace\n" +
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
" Line 4 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html: In function bar\n" +
" printTrace(printStackTrace());\n" +
" Line 7 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html: In function bar\n" +
" bar(n - 1);\n" +
" Line 11 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html: In function foo\n" +
" bar(2);\n" +
" Line 15 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
" foo();\n" +
"",
'opera#sourceloc': 42,
stacktrace: " ... Line 27 of linked script file://localhost/G:/js/stacktrace.js\n" +
" ex = ex || this.createException();\n" +
" Line 18 of linked script file://localhost/G:/js/stacktrace.js: In function printStackTrace\n" +
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
" Line 4 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html: In function bar\n" +
" printTrace(printStackTrace());\n" +
" Line 7 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html: In function bar\n" +
" bar(n - 1);\n" +
" Line 11 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html: In function foo\n" +
" bar(2);\n" +
" Line 15 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
" foo();\n" +
""
};
CapturedExceptions.opera_1010 = {
message: "Statement on line 42: Type mismatch (usually non-object value supplied where object required)",
'opera#sourceloc': 42,
stacktrace: " Line 42 of linked script file://localhost/G:/js/stacktrace.js\n" +
" this.undef();\n" +
" Line 27 of linked script file://localhost/G:/js/stacktrace.js\n" +
" ex = ex || this.createException();\n" +
" Line 18 of linked script file://localhost/G:/js/stacktrace.js: In function printStackTrace\n" +
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
" Line 4 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html: In function bar\n" +
" printTrace(printStackTrace());\n" +
" Line 7 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html: In function bar\n" +
" bar(n - 1);\n" +
" Line 11 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html: In function foo\n" +
" bar(2);\n" +
" Line 15 of inline#1 script in file://localhost/G:/js/test/functional/testcase1.html\n" +
" foo();\n" +
""
};
CapturedExceptions.opera_1063 = {
message: "'this.undef' is not a function",
stack: "<anonymous function: createException>([arguments not available])@file://localhost/G:/js/stacktrace.js:42\n" +
"<anonymous function: run>([arguments not available])@file://localhost/G:/js/stacktrace.js:27\n" +
"printStackTrace([arguments not available])@file://localhost/G:/js/stacktrace.js:18\n" +
"bar([arguments not available])@file://localhost/G:/js/test/functional/testcase1.html:4\n" +
"bar([arguments not available])@file://localhost/G:/js/test/functional/testcase1.html:7\n" +
"foo([arguments not available])@file://localhost/G:/js/test/functional/testcase1.html:11\n" +
"@file://localhost/G:/js/test/functional/testcase1.html:15",
stacktrace: "<anonymous function: createException>([arguments not available])@file://localhost/G:/js/stacktrace.js:42\n" +
"<anonymous function: run>([arguments not available])@file://localhost/G:/js/stacktrace.js:27\n" +
"printStackTrace([arguments not available])@file://localhost/G:/js/stacktrace.js:18\n" +
"bar([arguments not available])@file://localhost/G:/js/test/functional/testcase1.html:4\n" +
"bar([arguments not available])@file://localhost/G:/js/test/functional/testcase1.html:7\n" +
"foo([arguments not available])@file://localhost/G:/js/test/functional/testcase1.html:11\n" +
"@file://localhost/G:/js/test/functional/testcase1.html:15"
};
CapturedExceptions.opera_1111 = {
message: "'this.undef' is not a function",
stack: "<anonymous function: createException>([arguments not available])@file://localhost/G:/js/stacktrace.js:42\n" +
"<anonymous function: run>([arguments not available])@file://localhost/G:/js/stacktrace.js:27\n" +
"printStackTrace([arguments not available])@file://localhost/G:/js/stacktrace.js:18\n" +
"bar([arguments not available])@file://localhost/G:/js/test/functional/testcase1.html:4\n" +
"bar([arguments not available])@file://localhost/G:/js/test/functional/testcase1.html:7\n" +
"foo([arguments not available])@file://localhost/G:/js/test/functional/testcase1.html:11\n" +
"@file://localhost/G:/js/test/functional/testcase1.html:15",
stacktrace: "Error thrown at line 42, column 12 in <anonymous function: createException>() in file://localhost/G:/js/stacktrace.js:\n" +
" this.undef();\n" +
"called from line 27, column 8 in <anonymous function: run>(ex) in file://localhost/G:/js/stacktrace.js:\n" +
" ex = ex || this.createException();\n" +
"called from line 18, column 4 in printStackTrace(options) in file://localhost/G:/js/stacktrace.js:\n" +
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
"called from line 4, column 5 in bar(n) in file://localhost/G:/js/test/functional/testcase1.html:\n" +
" printTrace(printStackTrace());\n" +
"called from line 7, column 4 in bar(n) in file://localhost/G:/js/test/functional/testcase1.html:\n" +
" bar(n - 1);\n" +
"called from line 11, column 4 in foo() in file://localhost/G:/js/test/functional/testcase1.html:\n" +
" bar(2);\n" +
"called from line 15, column 3 in file://localhost/G:/js/test/functional/testcase1.html:\n" +
" foo();"
};
CapturedExceptions.opera_1151 = {
message: "'this.undef' is not a function",
stack: "<anonymous function: createException>([arguments not available])@file://localhost/G:/js/stacktrace.js:42\n" +
"<anonymous function: run>([arguments not available])@file://localhost/G:/js/stacktrace.js:27\n" +
"printStackTrace([arguments not available])@file://localhost/G:/js/stacktrace.js:18\n" +
"bar([arguments not available])@file://localhost/G:/js/test/functional/testcase1.html:4\n" +
"bar([arguments not available])@file://localhost/G:/js/test/functional/testcase1.html:7\n" +
"foo([arguments not available])@file://localhost/G:/js/test/functional/testcase1.html:11\n" +
"@file://localhost/G:/js/test/functional/testcase1.html:15",
stacktrace: "Error thrown at line 42, column 12 in <anonymous function: createException>() in file://localhost/G:/js/stacktrace.js:\n" +
" this.undef();\n" +
"called from line 27, column 8 in <anonymous function: run>(ex) in file://localhost/G:/js/stacktrace.js:\n" +
" ex = ex || this.createException();\n" +
"called from line 18, column 4 in printStackTrace(options) in file://localhost/G:/js/stacktrace.js:\n" +
" var p = new printStackTrace.implementation(), result = p.run(ex);\n" +
"called from line 4, column 5 in bar(n) in file://localhost/G:/js/test/functional/testcase1.html:\n" +
" printTrace(printStackTrace());\n" +
"called from line 7, column 4 in bar(n) in file://localhost/G:/js/test/functional/testcase1.html:\n" +
" bar(n - 1);\n" +
"called from line 11, column 4 in foo() in file://localhost/G:/js/test/functional/testcase1.html:\n" +
" bar(2);\n" +
"called from line 15, column 3 in file://localhost/G:/js/test/functional/testcase1.html:\n" +
" foo();"
};
CapturedExceptions.chrome_15 = {
'arguments': ["undef"],
message: "Object #<Object> has no method 'undef'",
stack: "TypeError: Object #<Object> has no method 'undef'\n" +
" at Object.createException (http://127.0.0.1:8000/js/stacktrace.js:42:18)\n" +
" at Object.run (http://127.0.0.1:8000/js/stacktrace.js:31:25)\n" +
" at printStackTrace (http://127.0.0.1:8000/js/stacktrace.js:18:62)\n" +
" at bar (http://127.0.0.1:8000/js/test/functional/testcase1.html:13:17)\n" +
" at bar (http://127.0.0.1:8000/js/test/functional/testcase1.html:16:5)\n" +
" at foo (http://127.0.0.1:8000/js/test/functional/testcase1.html:20:5)\n" +
" at http://127.0.0.1:8000/js/test/functional/testcase1.html:24:4"
};
CapturedExceptions.firefox_36 = {
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/test/functional/testcase1.html:13\n" +
"bar(2)@http://127.0.0.1:8000/js/test/functional/testcase1.html:16\n" +
"foo()@http://127.0.0.1:8000/js/test/functional/testcase1.html:20\n" +
"@http://127.0.0.1:8000/js/test/functional/testcase1.html:24\n" +
""
};
CapturedExceptions.firefox_36_file = {
fileName: "file:///home/user/js/stacktrace.js",
lineNumber: 44,
message: "this.undef is not a function",
name: "TypeError",
stack: "()@file:///home/user/js/stacktrace.js:44\n" +
"(null)@file:///home/user/js/stacktrace.js:31\n" +
"printStackTrace()@file:///home/user/js/stacktrace.js:18\n" +
"bar(1)@file:///home/user/js/test/functional/testcase1.html:13\n" +
"bar(2)@file:///home/user/js/test/functional/testcase1.html:16\n" +
"foo()@file:///home/user/js/test/functional/testcase1.html:20\n" +
"@file:///home/user/js/test/functional/testcase1.html: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/test/functional/testcase1.html:13\n" +
"bar(2)@file:///G:/js/test/functional/testcase1.html:16\n" +
"foo()@file:///G:/js/test/functional/testcase1.html:20\n" +
"@file:///G:/js/test/functional/testcase1.html:24\n" +
""
};
CapturedExceptions.firefox_14 = {
message: "x is null",
stack: "@file:///Users/eric/src/javascript-stacktrace/test/functional/ExceptionLab.html:48\n" +
"dumpException3@file:///Users/eric/src/javascript-stacktrace/test/functional/ExceptionLab.html:52\n" +
"onclick@file:///Users/eric/src/javascript-stacktrace/test/functional/ExceptionLab.html:1\n" +
"",
fileName: "file:///Users/eric/src/javascript-stacktrace/test/functional/ExceptionLab.html",
lineNumber: 48
};
CapturedExceptions.safari_6 = {
message: "'null' is not an object (evaluating 'x.undef')",
stack: "@file:///Users/eric/src/javascript-stacktrace/test/functional/ExceptionLab.html:48\n" +
"dumpException3@file:///Users/eric/src/javascript-stacktrace/test/functional/ExceptionLab.html:52\n" +
"onclick@file:///Users/eric/src/javascript-stacktrace/test/functional/ExceptionLab.html:82\n" +
"[native code]",
line: 48,
sourceURL: "file:///Users/eric/src/javascript-stacktrace/test/functional/ExceptionLab.html"
};
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://jenkins.eriwen.com/job/stacktrace.js/ws/test/functional/ExceptionLab.html:48:13)\n" +
" at dumpException3 (http://jenkins.eriwen.com/job/stacktrace.js/ws/test/functional/ExceptionLab.html:46:9)\n" +
" at onclick (http://jenkins.eriwen.com/job/stacktrace.js/ws/test/functional/ExceptionLab.html:82:1)",
description: "Unable to get property 'undef' of undefined or null reference",
number: -2146823281
};