OLD | NEW |
1 dart_library.library('dart/async', null, /* Imports */[ | 1 dart_library.library('dart/async', null, /* Imports */[ |
2 'dart/_runtime', | 2 'dart/_runtime', |
3 'dart/core', | 3 'dart/core', |
4 'dart/_internal', | 4 'dart/_internal', |
5 'dart/collection' | 5 'dart/collection' |
6 ], /* Lazy imports */[ | 6 ], /* Lazy imports */[ |
7 'dart/_isolate_helper' | 7 'dart/_isolate_helper' |
8 ], function(exports, dart, core, _internal, collection, _isolate_helper) { | 8 ], function(exports, dart, core, _internal, collection, _isolate_helper) { |
9 'use strict'; | 9 'use strict'; |
10 let dartx = dart.dartx; | 10 let dartx = dart.dartx; |
(...skipping 5232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5243 bindBinaryCallback(f, opts) { | 5243 bindBinaryCallback(f, opts) { |
5244 let runGuarded = opts && 'runGuarded' in opts ? opts.runGuarded : true; | 5244 let runGuarded = opts && 'runGuarded' in opts ? opts.runGuarded : true; |
5245 let registered = this.registerBinaryCallback(f); | 5245 let registered = this.registerBinaryCallback(f); |
5246 if (dart.notNull(runGuarded)) { | 5246 if (dart.notNull(runGuarded)) { |
5247 return dart.fn((arg1, arg2) => this.runBinaryGuarded(registered, arg1, a
rg2)); | 5247 return dart.fn((arg1, arg2) => this.runBinaryGuarded(registered, arg1, a
rg2)); |
5248 } else { | 5248 } else { |
5249 return dart.fn((arg1, arg2) => this.runBinary(registered, arg1, arg2)); | 5249 return dart.fn((arg1, arg2) => this.runBinary(registered, arg1, arg2)); |
5250 } | 5250 } |
5251 } | 5251 } |
5252 get(key) { | 5252 get(key) { |
5253 let result = this[_map].get(key); | 5253 let result = this[_map][dartx.get](key); |
5254 if (result != null || dart.notNull(this[_map].containsKey(key))) return re
sult; | 5254 if (result != null || dart.notNull(this[_map][dartx.containsKey](key))) re
turn result; |
5255 if (this.parent != null) { | 5255 if (this.parent != null) { |
5256 let value = this.parent.get(key); | 5256 let value = this.parent.get(key); |
5257 if (value != null) { | 5257 if (value != null) { |
5258 this[_map].set(key, value); | 5258 this[_map][dartx.set](key, value); |
5259 } | 5259 } |
5260 return value; | 5260 return value; |
5261 } | 5261 } |
5262 dart.assert(dart.equals(this, _ROOT_ZONE)); | 5262 dart.assert(dart.equals(this, _ROOT_ZONE)); |
5263 return null; | 5263 return null; |
5264 } | 5264 } |
5265 handleUncaughtError(error, stackTrace) { | 5265 handleUncaughtError(error, stackTrace) { |
5266 let implementation = this[_handleUncaughtError]; | 5266 let implementation = this[_handleUncaughtError]; |
5267 dart.assert(implementation != null); | 5267 dart.assert(implementation != null); |
5268 let parentDelegate = _parentDelegate(implementation.zone); | 5268 let parentDelegate = _parentDelegate(implementation.zone); |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5810 exports.ScheduleMicrotaskHandler = ScheduleMicrotaskHandler; | 5810 exports.ScheduleMicrotaskHandler = ScheduleMicrotaskHandler; |
5811 exports.CreateTimerHandler = CreateTimerHandler; | 5811 exports.CreateTimerHandler = CreateTimerHandler; |
5812 exports.CreatePeriodicTimerHandler = CreatePeriodicTimerHandler; | 5812 exports.CreatePeriodicTimerHandler = CreatePeriodicTimerHandler; |
5813 exports.PrintHandler = PrintHandler; | 5813 exports.PrintHandler = PrintHandler; |
5814 exports.ForkHandler = ForkHandler; | 5814 exports.ForkHandler = ForkHandler; |
5815 exports.ZoneSpecification = ZoneSpecification; | 5815 exports.ZoneSpecification = ZoneSpecification; |
5816 exports.ZoneDelegate = ZoneDelegate; | 5816 exports.ZoneDelegate = ZoneDelegate; |
5817 exports.Zone = Zone; | 5817 exports.Zone = Zone; |
5818 exports.runZoned = runZoned; | 5818 exports.runZoned = runZoned; |
5819 }); | 5819 }); |
OLD | NEW |