OLD | NEW |
1 var _js_helper = dart.defineLibrary(_js_helper, {}); | 1 var _js_helper = dart.defineLibrary(_js_helper, {}); |
2 var core = dart.import(core); | 2 var core = dart.import(core); |
3 var collection = dart.import(collection); | 3 var collection = dart.import(collection); |
4 var _internal = dart.import(_internal); | 4 var _internal = dart.import(_internal); |
5 var _foreign_helper = dart.import(_foreign_helper); | 5 var _foreign_helper = dart.import(_foreign_helper); |
6 var _js_embedded_names = dart.import(_js_embedded_names); | 6 var _js_embedded_names = dart.import(_js_embedded_names); |
7 var _interceptors = dart.lazyImport(_interceptors); | 7 var _interceptors = dart.lazyImport(_interceptors); |
8 var _js_names = dart.import(_js_names); | 8 var _js_names = dart.import(_js_names); |
9 var async = dart.import(async); | 9 var async = dart.import(async); |
10 var _isolate_helper = dart.lazyImport(_isolate_helper); | 10 var _isolate_helper = dart.lazyImport(_isolate_helper); |
(...skipping 2448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2459 this[_message] = message; | 2459 this[_message] = message; |
2460 super.Error(); | 2460 super.Error(); |
2461 } | 2461 } |
2462 toString() { | 2462 toString() { |
2463 return this[_message].isEmpty ? 'Error' : `Error: ${this[_message]}`; | 2463 return this[_message].isEmpty ? 'Error' : `Error: ${this[_message]}`; |
2464 } | 2464 } |
2465 } | 2465 } |
2466 // Function unwrapException: (dynamic) → dynamic | 2466 // Function unwrapException: (dynamic) → dynamic |
2467 function unwrapException(ex) { | 2467 function unwrapException(ex) { |
2468 // Function saveStackTrace: (dynamic) → dynamic | 2468 // Function saveStackTrace: (dynamic) → dynamic |
2469 function saveStackTrace(error) { | 2469 let saveStackTrace = error => { |
2470 if (dart.is(error, core.Error)) { | 2470 if (dart.is(error, core.Error)) { |
2471 let thrownStackTrace = error.$thrownJsError; | 2471 let thrownStackTrace = error.$thrownJsError; |
2472 if (thrownStackTrace == null) { | 2472 if (thrownStackTrace == null) { |
2473 error.$thrownJsError = ex; | 2473 error.$thrownJsError = ex; |
2474 } | 2474 } |
2475 } | 2475 } |
2476 return error; | 2476 return error; |
2477 } | 2477 }; |
2478 if (ex == null) | 2478 if (ex == null) |
2479 return null; | 2479 return null; |
2480 if (typeof ex !== "object") | 2480 if (typeof ex !== "object") |
2481 return ex; | 2481 return ex; |
2482 if ("dartException" in ex) { | 2482 if ("dartException" in ex) { |
2483 return saveStackTrace(ex.dartException); | 2483 return saveStackTrace(ex.dartException); |
2484 } else if (!("message" in ex)) { | 2484 } else if (!("message" in ex)) { |
2485 return ex; | 2485 return ex; |
2486 } | 2486 } |
2487 let message = ex.message; | 2487 let message = ex.message; |
(...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4083 exports.jsonEncodeNative = jsonEncodeNative; | 4083 exports.jsonEncodeNative = jsonEncodeNative; |
4084 exports.getIsolateAffinityTag = getIsolateAffinityTag; | 4084 exports.getIsolateAffinityTag = getIsolateAffinityTag; |
4085 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; | 4085 exports.LoadLibraryFunctionType = LoadLibraryFunctionType; |
4086 exports.DeferredLoadCallback = DeferredLoadCallback; | 4086 exports.DeferredLoadCallback = DeferredLoadCallback; |
4087 exports.loadDeferredLibrary = loadDeferredLibrary; | 4087 exports.loadDeferredLibrary = loadDeferredLibrary; |
4088 exports.MainError = MainError; | 4088 exports.MainError = MainError; |
4089 exports.missingMain = missingMain; | 4089 exports.missingMain = missingMain; |
4090 exports.badMain = badMain; | 4090 exports.badMain = badMain; |
4091 exports.mainHasTooManyParameters = mainHasTooManyParameters; | 4091 exports.mainHasTooManyParameters = mainHasTooManyParameters; |
4092 })(_js_helper, core, collection, _internal, _foreign_helper, _js_embedded_names,
_interceptors, _js_names, async, _isolate_helper); | 4092 })(_js_helper, core, collection, _internal, _foreign_helper, _js_embedded_names,
_interceptors, _js_names, async, _isolate_helper); |
OLD | NEW |