OLD | NEW |
1 var async; | 1 var async; |
2 (function(exports) { | 2 (function(exports) { |
3 'use strict'; | 3 'use strict'; |
4 // Function _invokeErrorHandler: (Function, Object, StackTrace) → dynamic | 4 // Function _invokeErrorHandler: (Function, Object, StackTrace) → dynamic |
5 function _invokeErrorHandler(errorHandler, error, stackTrace) { | 5 function _invokeErrorHandler(errorHandler, error, stackTrace) { |
6 if (dart.is(errorHandler, ZoneBinaryCallback)) { | 6 if (dart.is(errorHandler, ZoneBinaryCallback)) { |
7 return dart.dcall(errorHandler, error, stackTrace); | 7 return dart.dcall(errorHandler, error, stackTrace); |
8 } else { | 8 } else { |
9 return dart.dcall(errorHandler, error); | 9 return dart.dcall(errorHandler, error); |
10 } | 10 } |
(...skipping 25 matching lines...) Expand all Loading... |
36 if (stackTrace != null) | 36 if (stackTrace != null) |
37 return stackTrace; | 37 return stackTrace; |
38 if (dart.is(error, core.Error)) { | 38 if (dart.is(error, core.Error)) { |
39 return dart.as(dart.dload(error, 'stackTrace'), core.StackTrace); | 39 return dart.as(dart.dload(error, 'stackTrace'), core.StackTrace); |
40 } | 40 } |
41 return null; | 41 return null; |
42 } | 42 } |
43 toString() { | 43 toString() { |
44 let result = `Uncaught Error: ${this.error}`; | 44 let result = `Uncaught Error: ${this.error}`; |
45 if (this.stackTrace != null) { | 45 if (this.stackTrace != null) { |
46 result = core.String['+'](result, `\nStack Trace:\n${this.stackTrace}`); | 46 result = dart.notNull(result) + `\nStack Trace:\n${this.stackTrace}`; |
47 } | 47 } |
48 return result; | 48 return result; |
49 } | 49 } |
50 } | 50 } |
51 let _controller = Symbol('_controller'); | 51 let _controller = Symbol('_controller'); |
52 let _createSubscription = Symbol('_createSubscription'); | 52 let _createSubscription = Symbol('_createSubscription'); |
53 let _subscribe = Symbol('_subscribe'); | 53 let _subscribe = Symbol('_subscribe'); |
54 let _onListen = Symbol('_onListen'); | 54 let _onListen = Symbol('_onListen'); |
55 let _add = Symbol('_add'); | 55 let _add = Symbol('_add'); |
56 let _closeUnchecked = Symbol('_closeUnchecked'); | 56 let _closeUnchecked = Symbol('_closeUnchecked'); |
(...skipping 5139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5196 exports.ScheduleMicrotaskHandler = ScheduleMicrotaskHandler; | 5196 exports.ScheduleMicrotaskHandler = ScheduleMicrotaskHandler; |
5197 exports.CreateTimerHandler = CreateTimerHandler; | 5197 exports.CreateTimerHandler = CreateTimerHandler; |
5198 exports.CreatePeriodicTimerHandler = CreatePeriodicTimerHandler; | 5198 exports.CreatePeriodicTimerHandler = CreatePeriodicTimerHandler; |
5199 exports.PrintHandler = PrintHandler; | 5199 exports.PrintHandler = PrintHandler; |
5200 exports.ForkHandler = ForkHandler; | 5200 exports.ForkHandler = ForkHandler; |
5201 exports.ZoneSpecification = ZoneSpecification; | 5201 exports.ZoneSpecification = ZoneSpecification; |
5202 exports.ZoneDelegate = ZoneDelegate; | 5202 exports.ZoneDelegate = ZoneDelegate; |
5203 exports.Zone = Zone; | 5203 exports.Zone = Zone; |
5204 exports.runZoned = runZoned; | 5204 exports.runZoned = runZoned; |
5205 })(async || (async = {})); | 5205 })(async || (async = {})); |
OLD | NEW |