| OLD | NEW |
| 1 var _isolate_helper; | 1 var _isolate_helper; |
| 2 (function(exports) { | 2 (function(exports) { |
| 3 'use strict'; | 3 'use strict'; |
| 4 // Function _callInIsolate: (_IsolateContext, Function) → dynamic | 4 // Function _callInIsolate: (_IsolateContext, Function) → dynamic |
| 5 function _callInIsolate(isolate, function) { | 5 function _callInIsolate(isolate, function) { |
| 6 let result = isolate.eval(function); | 6 let result = isolate.eval(function); |
| 7 exports._globalState.topEventLoop.run(); | 7 exports._globalState.topEventLoop.run(); |
| 8 return result; | 8 return result; |
| 9 } | 9 } |
| 10 // Function enterJsAsync: () → dynamic | 10 // Function enterJsAsync: () → dynamic |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 let result = null; | 247 let result = null; |
| 248 this._isExecutingEvent = true; | 248 this._isExecutingEvent = true; |
| 249 try { | 249 try { |
| 250 result = dart.dinvokef(code); | 250 result = dart.dinvokef(code); |
| 251 } catch (e) { | 251 } catch (e) { |
| 252 let s = dart.stackTrace(e); | 252 let s = dart.stackTrace(e); |
| 253 this.handleUncaughtError(e, s); | 253 this.handleUncaughtError(e, s); |
| 254 if (this.errorsAreFatal) { | 254 if (this.errorsAreFatal) { |
| 255 this.kill(); | 255 this.kill(); |
| 256 if (core.identical(this, exports._globalState.rootContext)) { | 256 if (core.identical(this, exports._globalState.rootContext)) { |
| 257 dart.throw_("Unimplemented RethrowExpression: rethrow"); | 257 throw e; |
| 258 } | 258 } |
| 259 } | 259 } |
| 260 } | 260 } |
| 261 finally { | 261 finally { |
| 262 this._isExecutingEvent = false; | 262 this._isExecutingEvent = false; |
| 263 exports._globalState.currentContext = old; | 263 exports._globalState.currentContext = old; |
| 264 if (old !== null) | 264 if (old !== null) |
| 265 old._setGlobals(); | 265 old._setGlobals(); |
| 266 if (this._scheduledControlEvents !== null) { | 266 if (this._scheduledControlEvents !== null) { |
| 267 while (dart.dload(this._scheduledControlEvents, 'isNotEmpty')) { | 267 while (dart.dload(this._scheduledControlEvents, 'isNotEmpty')) { |
| (...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1266 exports.globalWindow = globalWindow; | 1266 exports.globalWindow = globalWindow; |
| 1267 exports.globalWorker = globalWorker; | 1267 exports.globalWorker = globalWorker; |
| 1268 exports.globalPostMessageDefined = globalPostMessageDefined; | 1268 exports.globalPostMessageDefined = globalPostMessageDefined; |
| 1269 exports.IsolateNatives = IsolateNatives; | 1269 exports.IsolateNatives = IsolateNatives; |
| 1270 exports.RawReceivePortImpl = RawReceivePortImpl; | 1270 exports.RawReceivePortImpl = RawReceivePortImpl; |
| 1271 exports.ReceivePortImpl = ReceivePortImpl; | 1271 exports.ReceivePortImpl = ReceivePortImpl; |
| 1272 exports.TimerImpl = TimerImpl; | 1272 exports.TimerImpl = TimerImpl; |
| 1273 exports.hasTimer = hasTimer; | 1273 exports.hasTimer = hasTimer; |
| 1274 exports.CapabilityImpl = CapabilityImpl; | 1274 exports.CapabilityImpl = CapabilityImpl; |
| 1275 })(_isolate_helper || (_isolate_helper = {})); | 1275 })(_isolate_helper || (_isolate_helper = {})); |
| OLD | NEW |