|
| 1 | +var CapturedExceptions = {}; |
| 2 | + |
| 3 | +CapturedExceptions.OPERA_854 = { |
| 4 | + message: "Statement on line 44: Type mismatch (usually a non-object value used where an object is required)\n" + |
| 5 | + "Backtrace:\n" + |
| 6 | + " Line 44 of linked script http://path/to/file.js\n" + |
| 7 | + " this.undef();\n" + |
| 8 | + " Line 31 of linked script http://path/to/file.js\n" + |
| 9 | + " ex = ex || this.createException();\n" + |
| 10 | + " Line 18 of linked script http://path/to/file.js\n" + |
| 11 | + " var p = new printStackTrace.implementation(), result = p.run(ex);\n" + |
| 12 | + " Line 4 of inline#1 script in http://path/to/file.js\n" + |
| 13 | + " printTrace(printStackTrace());\n" + |
| 14 | + " Line 7 of inline#1 script in http://path/to/file.js\n" + |
| 15 | + " bar(n - 1);\n" + |
| 16 | + " Line 11 of inline#1 script in http://path/to/file.js\n" + |
| 17 | + " bar(2);\n" + |
| 18 | + " Line 15 of inline#1 script in http://path/to/file.js\n" + |
| 19 | + " foo();\n" + |
| 20 | + "", |
| 21 | + 'opera#sourceloc': 44 |
| 22 | +}; |
| 23 | + |
| 24 | +CapturedExceptions.OPERA_902 = { |
| 25 | + message: "Statement on line 44: Type mismatch (usually a non-object value used where an object is required)\n" + |
| 26 | + "Backtrace:\n" + |
| 27 | + " Line 44 of linked script http://path/to/file.js\n" + |
| 28 | + " this.undef();\n" + |
| 29 | + " Line 31 of linked script http://path/to/file.js\n" + |
| 30 | + " ex = ex || this.createException();\n" + |
| 31 | + " Line 18 of linked script http://path/to/file.js\n" + |
| 32 | + " var p = new printStackTrace.implementation(), result = p.run(ex);\n" + |
| 33 | + " Line 4 of inline#1 script in http://path/to/file.js\n" + |
| 34 | + " printTrace(printStackTrace());\n" + |
| 35 | + " Line 7 of inline#1 script in http://path/to/file.js\n" + |
| 36 | + " bar(n - 1);\n" + |
| 37 | + " Line 11 of inline#1 script in http://path/to/file.js\n" + |
| 38 | + " bar(2);\n" + |
| 39 | + " Line 15 of inline#1 script in http://path/to/file.js\n" + |
| 40 | + " foo();\n" + |
| 41 | + "", |
| 42 | + 'opera#sourceloc': 44 |
| 43 | +}; |
| 44 | + |
| 45 | +CapturedExceptions.OPERA_927 = { |
| 46 | + message: "Statement on line 43: Type mismatch (usually a non-object value used where an object is required)\n" + |
| 47 | + "Backtrace:\n" + |
| 48 | + " Line 43 of linked script http://path/to/file.js\n" + |
| 49 | + " bar(n - 1);\n" + |
| 50 | + " Line 31 of linked script http://path/to/file.js\n" + |
| 51 | + " bar(2);\n" + |
| 52 | + " Line 18 of linked script http://path/to/file.js\n" + |
| 53 | + " foo();\n" + |
| 54 | + "", |
| 55 | + 'opera#sourceloc': 43 |
| 56 | +}; |
| 57 | + |
| 58 | +CapturedExceptions.OPERA_964 = { |
| 59 | + message: "Statement on line 42: Type mismatch (usually non-object value supplied where object required)\n" + |
| 60 | + "Backtrace:\n" + |
| 61 | + " Line 42 of linked script http://path/to/file.js\n" + |
| 62 | + " this.undef();\n" + |
| 63 | + " Line 27 of linked script http://path/to/file.js\n" + |
| 64 | + " ex = ex || this.createException();\n" + |
| 65 | + " Line 18 of linked script http://path/to/file.js: In function printStackTrace\n" + |
| 66 | + " var p = new printStackTrace.implementation(), result = p.run(ex);\n" + |
| 67 | + " Line 4 of inline#1 script in http://path/to/file.js: In function bar\n" + |
| 68 | + " printTrace(printStackTrace());\n" + |
| 69 | + " Line 7 of inline#1 script in http://path/to/file.js: In function bar\n" + |
| 70 | + " bar(n - 1);\n" + |
| 71 | + " Line 11 of inline#1 script in http://path/to/file.js: In function foo\n" + |
| 72 | + " bar(2);\n" + |
| 73 | + " Line 15 of inline#1 script in http://path/to/file.js\n" + |
| 74 | + " foo();\n" + |
| 75 | + "", |
| 76 | + 'opera#sourceloc': 42, |
| 77 | + stacktrace: " ... Line 27 of linked script http://path/to/file.js\n" + |
| 78 | + " ex = ex || this.createException();\n" + |
| 79 | + " Line 18 of linked script http://path/to/file.js: In function printStackTrace\n" + |
| 80 | + " var p = new printStackTrace.implementation(), result = p.run(ex);\n" + |
| 81 | + " Line 4 of inline#1 script in http://path/to/file.js: In function bar\n" + |
| 82 | + " printTrace(printStackTrace());\n" + |
| 83 | + " Line 7 of inline#1 script in http://path/to/file.js: In function bar\n" + |
| 84 | + " bar(n - 1);\n" + |
| 85 | + " Line 11 of inline#1 script in http://path/to/file.js: In function foo\n" + |
| 86 | + " bar(2);\n" + |
| 87 | + " Line 15 of inline#1 script in http://path/to/file.js\n" + |
| 88 | + " foo();\n" + |
| 89 | + "" |
| 90 | +}; |
| 91 | + |
| 92 | +CapturedExceptions.OPERA_10 = { |
| 93 | + message: "Statement on line 42: Type mismatch (usually non-object value supplied where object required)", |
| 94 | + 'opera#sourceloc': 42, |
| 95 | + stacktrace: " Line 42 of linked script http://path/to/file.js\n" + |
| 96 | + " this.undef();\n" + |
| 97 | + " Line 27 of linked script http://path/to/file.js\n" + |
| 98 | + " ex = ex || this.createException();\n" + |
| 99 | + " Line 18 of linked script http://path/to/file.js: In function printStackTrace\n" + |
| 100 | + " var p = new printStackTrace.implementation(), result = p.run(ex);\n" + |
| 101 | + " Line 4 of inline#1 script in http://path/to/file.js: In function bar\n" + |
| 102 | + " printTrace(printStackTrace());\n" + |
| 103 | + " Line 7 of inline#1 script in http://path/to/file.js: In function bar\n" + |
| 104 | + " bar(n - 1);\n" + |
| 105 | + " Line 11 of inline#1 script in http://path/to/file.js: In function foo\n" + |
| 106 | + " bar(2);\n" + |
| 107 | + " Line 15 of inline#1 script in http://path/to/file.js\n" + |
| 108 | + " foo();\n" + |
| 109 | + "" |
| 110 | +}; |
| 111 | + |
| 112 | +CapturedExceptions.OPERA_11 = { |
| 113 | + message: "'this.undef' is not a function", |
| 114 | + stack: "<anonymous function: run>([arguments not available])@http://path/to/file.js:27\n" + |
| 115 | + "bar([arguments not available])@http://domain.com:1234/path/to/file.js:18\n" + |
| 116 | + "foo([arguments not available])@http://domain.com:1234/path/to/file.js:11\n" + |
| 117 | + "<anonymous function>@http://path/to/file.js:15\n" + |
| 118 | + "Error created at <anonymous function>@http://path/to/file.js:15", |
| 119 | + stacktrace: "Error thrown at line 42, column 12 in <anonymous function: createException>() in http://path/to/file.js:\n" + |
| 120 | + " this.undef();\n" + |
| 121 | + "called from line 27, column 8 in <anonymous function: run>(ex) in http://path/to/file.js:\n" + |
| 122 | + " ex = ex || this.createException();\n" + |
| 123 | + "called from line 18, column 4 in printStackTrace(options) in http://path/to/file.js:\n" + |
| 124 | + " var p = new printStackTrace.implementation(), result = p.run(ex);\n" + |
| 125 | + "called from line 4, column 5 in bar(n) in http://path/to/file.js:\n" + |
| 126 | + " printTrace(printStackTrace());\n" + |
| 127 | + "called from line 7, column 4 in bar(n) in http://path/to/file.js:\n" + |
| 128 | + " bar(n - 1);\n" + |
| 129 | + "called from line 11, column 4 in foo() in http://path/to/file.js:\n" + |
| 130 | + " bar(2);\n" + |
| 131 | + "called from line 15, column 3 in http://path/to/file.js:\n" + |
| 132 | + " foo();" |
| 133 | +}; |
| 134 | + |
| 135 | +CapturedExceptions.OPERA_12 = { |
| 136 | + message: "Cannot convert 'x' to object", |
| 137 | + stack: "<anonymous function>([arguments not available])@http://localhost:8000/ExceptionLab.html:48\n" + |
| 138 | + "dumpException3([arguments not available])@http://localhost:8000/ExceptionLab.html:46\n" + |
| 139 | + "<anonymous function>([arguments not available])@http://localhost:8000/ExceptionLab.html:1", |
| 140 | + stacktrace: "Error thrown at line 48, column 12 in <anonymous function>(x) in http://localhost:8000/ExceptionLab.html:\n" + |
| 141 | + " x.undef();\n" + |
| 142 | + "called from line 46, column 8 in dumpException3() in http://localhost:8000/ExceptionLab.html:\n" + |
| 143 | + " dumpException((function(x) {\n" + |
| 144 | + "called from line 1, column 0 in <anonymous function>(event) in http://localhost:8000/ExceptionLab.html:\n" + |
| 145 | + " dumpException3();" |
| 146 | +}; |
| 147 | + |
| 148 | +CapturedExceptions.OPERA_25 = { |
| 149 | + message: "Cannot read property 'undef' of null", |
| 150 | + name: "TypeError", |
| 151 | + stack: "TypeError: Cannot read property 'undef' of null\n" + |
| 152 | + " at http://path/to/file.js:47:22\n" + |
| 153 | + " at foo (http://path/to/file.js:52:15)\n" + |
| 154 | + " at bar (http://path/to/file.js:108:168)" |
| 155 | +}; |
| 156 | + |
| 157 | +CapturedExceptions.CHROME_15 = { |
| 158 | + 'arguments': ["undef"], |
| 159 | + message: "Object #<Object> has no method 'undef'", |
| 160 | + stack: "TypeError: Object #<Object> has no method 'undef'\n" + |
| 161 | + " at bar (http://path/to/file.js:13:17)\n" + |
| 162 | + " at bar (http://path/to/file.js:16:5)\n" + |
| 163 | + " at foo (http://path/to/file.js:20:5)\n" + |
| 164 | + " at http://path/to/file.js:24:4" |
| 165 | +}; |
| 166 | + |
| 167 | +CapturedExceptions.CHROME_36 = { |
| 168 | + message: "Default error", |
| 169 | + name: "Error", |
| 170 | + stack: "Error: Default error\n" + |
| 171 | + " at dumpExceptionError (http://localhost:8080/file.js:41:27)\n" + |
| 172 | + " at HTMLButtonElement.onclick (http://localhost:8080/file.js:107:146)\n" + |
| 173 | + " at I.e.fn.(anonymous function) [as index] (http://localhost:8080/file.js:10:3651)" |
| 174 | +}; |
| 175 | + |
| 176 | +CapturedExceptions.FIREFOX_3 = { |
| 177 | + fileName: "http://127.0.0.1:8000/js/stacktrace.js", |
| 178 | + lineNumber: 44, |
| 179 | + message: "this.undef is not a function", |
| 180 | + name: "TypeError", |
| 181 | + stack: "()@http://127.0.0.1:8000/js/stacktrace.js:44\n" + |
| 182 | + "(null)@http://127.0.0.1:8000/js/stacktrace.js:31\n" + |
| 183 | + "printStackTrace()@http://127.0.0.1:8000/js/stacktrace.js:18\n" + |
| 184 | + "bar(1)@http://127.0.0.1:8000/js/file.js:13\n" + |
| 185 | + "bar(2)@http://127.0.0.1:8000/js/file.js:16\n" + |
| 186 | + "foo()@http://127.0.0.1:8000/js/file.js:20\n" + |
| 187 | + "@http://127.0.0.1:8000/js/file.js:24\n" + |
| 188 | + "" |
| 189 | +}; |
| 190 | + |
| 191 | +CapturedExceptions.FIREFOX_7 = { |
| 192 | + fileName: "file:///G:/js/stacktrace.js", |
| 193 | + lineNumber: 44, |
| 194 | + stack: "()@file:///G:/js/stacktrace.js:44\n" + |
| 195 | + "(null)@file:///G:/js/stacktrace.js:31\n" + |
| 196 | + "printStackTrace()@file:///G:/js/stacktrace.js:18\n" + |
| 197 | + "bar(1)@file:///G:/js/file.js:13\n" + |
| 198 | + "bar(2)@file:///G:/js/file.js:16\n" + |
| 199 | + "foo()@file:///G:/js/file.js:20\n" + |
| 200 | + "@file:///G:/js/file.js:24\n" + |
| 201 | + "" |
| 202 | +}; |
| 203 | + |
| 204 | +CapturedExceptions.FIREFOX_14 = { |
| 205 | + message: "x is null", |
| 206 | + stack: "@http://path/to/file.js:48\n" + |
| 207 | + "dumpException3@http://path/to/file.js:52\n" + |
| 208 | + "onclick@http://path/to/file.js:1\n" + |
| 209 | + "", |
| 210 | + fileName: "http://path/to/file.js", |
| 211 | + lineNumber: 48 |
| 212 | +}; |
| 213 | + |
| 214 | +CapturedExceptions.FIREFOX_31 = { |
| 215 | + message: "Default error", |
| 216 | + name: "Error", |
| 217 | + stack: "foo@http://path/to/file.js:41:13\n" + |
| 218 | + "bar@http://path/to/file.js:1:1\n" + |
| 219 | + ".plugin/e.fn[c]/<@http://path/to/file.js:1:1\n" + |
| 220 | + "", |
| 221 | + fileName: "http://path/to/file.js", |
| 222 | + lineNumber: 41, |
| 223 | + columnNumber: 12 |
| 224 | +}; |
| 225 | + |
| 226 | +CapturedExceptions.SAFARI_6 = { |
| 227 | + message: "'null' is not an object (evaluating 'x.undef')", |
| 228 | + stack: "@http://path/to/file.js:48\n" + |
| 229 | + "dumpException3@http://path/to/file.js:52\n" + |
| 230 | + "onclick@http://path/to/file.js:82\n" + |
| 231 | + "[native code]", |
| 232 | + line: 48, |
| 233 | + sourceURL: "http://path/to/file.js" |
| 234 | +}; |
| 235 | + |
| 236 | +CapturedExceptions.SAFARI_7 = { |
| 237 | + message: "'null' is not an object (evaluating 'x.undef')", |
| 238 | + name: "TypeError", |
| 239 | + stack: "http://path/to/file.js:48:22\n" + |
| 240 | + "foo@http://path/to/file.js:52:15\n" + |
| 241 | + "bar@http://path/to/file.js:108:107", |
| 242 | + line: 47, |
| 243 | + sourceURL: "http://path/to/file.js" |
| 244 | +}; |
| 245 | + |
| 246 | +CapturedExceptions.SAFARI_8 = { |
| 247 | + message: "null is not an object (evaluating 'x.undef')", |
| 248 | + name: "TypeError", |
| 249 | + stack: "http://path/to/file.js:47:22\n" + |
| 250 | + "foo@http://path/to/file.js:52:15\n" + |
| 251 | + "bar@http://path/to/file.js:108:23", |
| 252 | + line: 47, |
| 253 | + column: 22, |
| 254 | + sourceURL: "http://path/to/file.js" |
| 255 | +}; |
| 256 | + |
| 257 | +CapturedExceptions.SAFARI_8_EVAL = { |
| 258 | + message: "Can't find variable: getExceptionProps", |
| 259 | + name: "ReferenceError", |
| 260 | + stack: "eval code\n" + |
| 261 | + "eval@[native code]\n" + |
| 262 | + "foo@http://path/to/file.js:58:21\n" + |
| 263 | + "bar@http://path/to/file.js:109:91", |
| 264 | + line: 1, |
| 265 | + column: 18 |
| 266 | +}; |
| 267 | + |
| 268 | +CapturedExceptions.IE_9 = { |
| 269 | + message: "Unable to get property 'undef' of undefined or null reference", |
| 270 | + description: "Unable to get property 'undef' of undefined or null reference" |
| 271 | +}; |
| 272 | + |
| 273 | +CapturedExceptions.IE_10 = { |
| 274 | + message: "Unable to get property 'undef' of undefined or null reference", |
| 275 | + stack: "TypeError: Unable to get property 'undef' of undefined or null reference\n" + |
| 276 | + " at Anonymous function (http://path/to/file.js:48:13)\n" + |
| 277 | + " at foo (http://path/to/file.js:46:9)\n" + |
| 278 | + " at bar (http://path/to/file.js:82:1)", |
| 279 | + description: "Unable to get property 'undef' of undefined or null reference", |
| 280 | + number: -2146823281 |
| 281 | +}; |
| 282 | + |
| 283 | +CapturedExceptions.IE_11 = { |
| 284 | + message: "Unable to get property 'undef' of undefined or null reference", |
| 285 | + name: "TypeError", |
| 286 | + stack: "TypeError: Unable to get property 'undef' of undefined or null reference\n" + |
| 287 | + " at Anonymous function (http://path/to/file.js:47:21)\n" + |
| 288 | + " at foo (http://path/to/file.js:45:13)\n" + |
| 289 | + " at bar (http://path/to/file.js:108:1)", |
| 290 | + description: "Unable to get property 'undef' of undefined or null reference", |
| 291 | + number: -2146823281 |
| 292 | +}; |
| 293 | + |
| 294 | +CapturedExceptions.IE_11_EVAL = { |
| 295 | + message: "'getExceptionProps' is undefined", |
| 296 | + name: "ReferenceError", |
| 297 | + stack: "ReferenceError: 'getExceptionProps' is undefined\n" + |
| 298 | + " at eval code (eval code:1:1)\n" + |
| 299 | + " at foo (http://path/to/file.js:58:17)\n" + |
| 300 | + " at bar (http://path/to/file.js:109:1)", |
| 301 | + description: "'getExceptionProps' is undefined", |
| 302 | + number: -2146823279 |
| 303 | +}; |
| 304 | + |
| 305 | +CapturedExceptions.CHROME_48_BLOB = { |
| 306 | + message: "Error: test", |
| 307 | + name: "Error", |
| 308 | + stack: "Error: test\n" + |
| 309 | + " at Error (native)\n" + |
| 310 | + " at s (blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379:31:29146)\n" + |
| 311 | + " at Object.d [as add] (blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379:31:30039)\n" + |
| 312 | + " at blob:http%3A//localhost%3A8080/d4eefe0f-361a-4682-b217-76587d9f712a:15:10978\n" + |
| 313 | + " at blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379:1:6911\n" + |
| 314 | + " at n.fire (blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379:7:3019)\n" + |
| 315 | + " at n.handle (blob:http%3A//localhost%3A8080/abfc40e9-4742-44ed-9dcd-af8f99a29379:7:2863)" |
| 316 | +}; |
| 317 | + |
| 318 | +module.exports = CaptureExceptions; |
0 commit comments