OLD | NEW |
1 dart_library.library('stack_trace', null, /* Imports */[ | 1 dart_library.library('stack_trace', null, /* Imports */[ |
2 'dart_sdk', | 2 'dart_sdk', |
3 'path' | 3 'path' |
4 ], function load__stack_trace(exports, dart_sdk, path) { | 4 ], function load__stack_trace(exports, dart_sdk, path) { |
5 'use strict'; | 5 'use strict'; |
6 const core = dart_sdk.core; | 6 const core = dart_sdk.core; |
7 const async = dart_sdk.async; | 7 const async = dart_sdk.async; |
8 const _interceptors = dart_sdk._interceptors; | 8 const _interceptors = dart_sdk._interceptors; |
9 const math = dart_sdk.math; | 9 const math = dart_sdk.math; |
10 const dart = dart_sdk.dart; | 10 const dart = dart_sdk.dart; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 } | 69 } |
70 let spec = new src__stack_zone_specification.StackZoneSpecification(onEr
ror); | 70 let spec = new src__stack_zone_specification.StackZoneSpecification(onEr
ror); |
71 return T.as(async.runZoned(dart.dynamic)(dart.fn(() => { | 71 return T.as(async.runZoned(dart.dynamic)(dart.fn(() => { |
72 try { | 72 try { |
73 return callback(); | 73 return callback(); |
74 } catch (error) { | 74 } catch (error) { |
75 let stackTrace = dart.stackTrace(error); | 75 let stackTrace = dart.stackTrace(error); |
76 return async.Zone.current.handleUncaughtError(dart.dynamic)(error, s
tackTrace); | 76 return async.Zone.current.handleUncaughtError(dart.dynamic)(error, s
tackTrace); |
77 } | 77 } |
78 | 78 |
79 }, VoidTodynamic()), {zoneSpecification: spec.toSpec(), zoneValues: dart
.map([const$0 || (const$0 = dart.const(core.Symbol.new('stack_trace.stack_zone.s
pec'))), spec])})); | 79 }, VoidTodynamic()), {zoneSpecification: spec.toSpec(), zoneValues: dart
.map([const$0 || (const$0 = dart.const(core.Symbol.new('stack_trace.stack_zone.s
pec'))), spec], core.Symbol, src__stack_zone_specification.StackZoneSpecificatio
n)})); |
80 }; | 80 }; |
81 } | 81 } |
82 static track(futureOrStream) { | 82 static track(futureOrStream) { |
83 return futureOrStream; | 83 return futureOrStream; |
84 } | 84 } |
85 static current(level) { | 85 static current(level) { |
86 if (level === void 0) level = 0; | 86 if (level === void 0) level = 0; |
87 if (src__chain.Chain._currentSpec != null) return src__chain.Chain._curren
tSpec.currentChain(dart.notNull(level) + 1); | 87 if (src__chain.Chain._currentSpec != null) return src__chain.Chain._curren
tSpec.currentChain(dart.notNull(level) + 1); |
88 return new src__chain.Chain(JSArrayOfTrace().of([src__trace.Trace.current(
dart.notNull(level) + 1)])); | 88 return new src__chain.Chain(JSArrayOfTrace().of([src__trace.Trace.current(
dart.notNull(level) + 1)])); |
89 } | 89 } |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
787 exports.src__chain = src__chain; | 787 exports.src__chain = src__chain; |
788 exports.src__frame = src__frame; | 788 exports.src__frame = src__frame; |
789 exports.src__lazy_trace = src__lazy_trace; | 789 exports.src__lazy_trace = src__lazy_trace; |
790 exports.src__stack_zone_specification = src__stack_zone_specification; | 790 exports.src__stack_zone_specification = src__stack_zone_specification; |
791 exports.src__trace = src__trace; | 791 exports.src__trace = src__trace; |
792 exports.src__unparsed_frame = src__unparsed_frame; | 792 exports.src__unparsed_frame = src__unparsed_frame; |
793 exports.src__utils = src__utils; | 793 exports.src__utils = src__utils; |
794 exports.src__vm_trace = src__vm_trace; | 794 exports.src__vm_trace = src__vm_trace; |
795 exports.stack_trace = stack_trace; | 795 exports.stack_trace = stack_trace; |
796 }); | 796 }); |
OLD | NEW |