| OLD | NEW |
| 1 var isolate = dart.defineLibrary(isolate, {}); | 1 var isolate = dart.defineLibrary(isolate, {}); |
| 2 var core = dart.import(core); | 2 var core = dart.import(core); |
| 3 var _isolate_helper = dart.lazyImport(_isolate_helper); | 3 var _isolate_helper = dart.lazyImport(_isolate_helper); |
| 4 var async = dart.import(async); | 4 var async = dart.import(async); |
| 5 (function(exports, core, _isolate_helper, async) { | 5 (function(exports, core, _isolate_helper, async) { |
| 6 'use strict'; | 6 'use strict'; |
| 7 class Capability extends core.Object { | 7 class Capability extends core.Object { |
| 8 Capability() { | 8 Capability() { |
| 9 return new _isolate_helper.CapabilityImpl(); | 9 return new _isolate_helper.CapabilityImpl(); |
| 10 } | 10 } |
| 11 } | 11 } |
| 12 dart.setSignature(Capability, {}); | 12 dart.setSignature(Capability, {}); |
| 13 class IsolateSpawnException extends core.Object { | 13 class IsolateSpawnException extends core.Object { |
| 14 IsolateSpawnException(message) { | 14 IsolateSpawnException(message) { |
| 15 this.message = message; | 15 this.message = message; |
| 16 } | 16 } |
| 17 toString() { | 17 toString() { |
| 18 return `IsolateSpawnException: ${this.message}`; | 18 return `IsolateSpawnException: ${this.message}`; |
| 19 } | 19 } |
| 20 } | 20 } |
| 21 IsolateSpawnException[dart.implements] = () => [core.Exception]; | 21 IsolateSpawnException[dart.implements] = () => [core.Exception]; |
| 22 dart.setSignature(IsolateSpawnException, { | 22 dart.setSignature(IsolateSpawnException, {}); |
| 23 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 24 }); | |
| 25 let _pause = Symbol('_pause'); | 23 let _pause = Symbol('_pause'); |
| 26 class Isolate extends core.Object { | 24 class Isolate extends core.Object { |
| 27 Isolate(controlPort, opts) { | 25 Isolate(controlPort, opts) { |
| 28 let pauseCapability = opts && 'pauseCapability' in opts ? opts.pauseCapabi
lity : null; | 26 let pauseCapability = opts && 'pauseCapability' in opts ? opts.pauseCapabi
lity : null; |
| 29 let terminateCapability = opts && 'terminateCapability' in opts ? opts.ter
minateCapability : null; | 27 let terminateCapability = opts && 'terminateCapability' in opts ? opts.ter
minateCapability : null; |
| 30 this.controlPort = controlPort; | 28 this.controlPort = controlPort; |
| 31 this.pauseCapability = pauseCapability; | 29 this.pauseCapability = pauseCapability; |
| 32 this.terminateCapability = terminateCapability; | 30 this.terminateCapability = terminateCapability; |
| 33 } | 31 } |
| 34 static get current() { | 32 static get current() { |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 _IsolateUnhandledException(message, source, stackTrace) { | 204 _IsolateUnhandledException(message, source, stackTrace) { |
| 207 this.message = message; | 205 this.message = message; |
| 208 this.source = source; | 206 this.source = source; |
| 209 this.stackTrace = stackTrace; | 207 this.stackTrace = stackTrace; |
| 210 } | 208 } |
| 211 toString() { | 209 toString() { |
| 212 return 'IsolateUnhandledException: exception while handling message: ' + `
${this.message} \n ` + `${dart.toString(this.source).replaceAll("\n", "\n ")}\
n` + 'original stack trace:\n ' + `${dart.toString(this.stackTrace).replaceAll(
"\n", "\n ")}`; | 210 return 'IsolateUnhandledException: exception while handling message: ' + `
${this.message} \n ` + `${dart.toString(this.source).replaceAll("\n", "\n ")}\
n` + 'original stack trace:\n ' + `${dart.toString(this.stackTrace).replaceAll(
"\n", "\n ")}`; |
| 213 } | 211 } |
| 214 } | 212 } |
| 215 _IsolateUnhandledException[dart.implements] = () => [core.Exception]; | 213 _IsolateUnhandledException[dart.implements] = () => [core.Exception]; |
| 216 dart.setSignature(_IsolateUnhandledException, { | 214 dart.setSignature(_IsolateUnhandledException, {}); |
| 217 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 218 }); | |
| 219 let _description = Symbol('_description'); | 215 let _description = Symbol('_description'); |
| 220 class RemoteError extends core.Object { | 216 class RemoteError extends core.Object { |
| 221 RemoteError(description, stackDescription) { | 217 RemoteError(description, stackDescription) { |
| 222 this[_description] = description; | 218 this[_description] = description; |
| 223 this.stackTrace = new _RemoteStackTrace(stackDescription); | 219 this.stackTrace = new _RemoteStackTrace(stackDescription); |
| 224 } | 220 } |
| 225 toString() { | 221 toString() { |
| 226 return this[_description]; | 222 return this[_description]; |
| 227 } | 223 } |
| 228 } | 224 } |
| 229 RemoteError[dart.implements] = () => [core.Error]; | 225 RemoteError[dart.implements] = () => [core.Error]; |
| 230 dart.setSignature(RemoteError, { | 226 dart.setSignature(RemoteError, {}); |
| 231 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 232 }); | |
| 233 let _trace = Symbol('_trace'); | 227 let _trace = Symbol('_trace'); |
| 234 class _RemoteStackTrace extends core.Object { | 228 class _RemoteStackTrace extends core.Object { |
| 235 _RemoteStackTrace(trace) { | 229 _RemoteStackTrace(trace) { |
| 236 this[_trace] = trace; | 230 this[_trace] = trace; |
| 237 } | 231 } |
| 238 toString() { | 232 toString() { |
| 239 return this[_trace]; | 233 return this[_trace]; |
| 240 } | 234 } |
| 241 } | 235 } |
| 242 _RemoteStackTrace[dart.implements] = () => [core.StackTrace]; | 236 _RemoteStackTrace[dart.implements] = () => [core.StackTrace]; |
| 243 dart.setSignature(_RemoteStackTrace, { | 237 dart.setSignature(_RemoteStackTrace, {}); |
| 244 methods: () => ({toString: dart.functionType(core.String, [])}) | |
| 245 }); | |
| 246 // Exports: | 238 // Exports: |
| 247 exports.Capability = Capability; | 239 exports.Capability = Capability; |
| 248 exports.IsolateSpawnException = IsolateSpawnException; | 240 exports.IsolateSpawnException = IsolateSpawnException; |
| 249 exports.Isolate = Isolate; | 241 exports.Isolate = Isolate; |
| 250 exports.SendPort = SendPort; | 242 exports.SendPort = SendPort; |
| 251 exports.ReceivePort = ReceivePort; | 243 exports.ReceivePort = ReceivePort; |
| 252 exports.RawReceivePort = RawReceivePort; | 244 exports.RawReceivePort = RawReceivePort; |
| 253 exports.RemoteError = RemoteError; | 245 exports.RemoteError = RemoteError; |
| 254 })(isolate, core, _isolate_helper, async); | 246 })(isolate, core, _isolate_helper, async); |
| OLD | NEW |