| OLD | NEW |
| 1 dart_library.library('dart/isolate', null, /* Imports */[ | 1 dart_library.library('dart/isolate', null, /* Imports */[ |
| 2 "dart/_runtime", | 2 "dart/_runtime", |
| 3 'dart/core', | 3 'dart/core', |
| 4 'dart/async' | 4 'dart/async' |
| 5 ], /* Lazy imports */[ | 5 ], /* Lazy imports */[ |
| 6 'dart/_isolate_helper' | 6 'dart/_isolate_helper' |
| 7 ], function(exports, dart, core, async, _isolate_helper) { | 7 ], function(exports, dart, core, async, _isolate_helper) { |
| 8 'use strict'; | 8 'use strict'; |
| 9 let dartx = dart.dartx; | 9 let dartx = dart.dartx; |
| 10 class Capability extends core.Object { | 10 class Capability extends core.Object { |
| 11 static new() { | 11 static new() { |
| 12 return new _isolate_helper.CapabilityImpl(); | 12 return new _isolate_helper.CapabilityImpl(); |
| 13 } | 13 } |
| 14 } | 14 } |
| 15 dart.setSignature(Capability, { | 15 dart.setSignature(Capability, { |
| 16 constructors: () => ({new: [Capability, []]}) | 16 constructors: () => ({new: [Capability, []]}) |
| 17 }); | 17 }); |
| 18 class IsolateSpawnException extends core.Object { | 18 class IsolateSpawnException extends core.Object { |
| 19 IsolateSpawnException(message) { | 19 IsolateSpawnException(message) { |
| 20 this.message = message; | 20 this.message = message; |
| 21 } | 21 } |
| 22 toString() { | 22 toString() { |
| 23 return `IsolateSpawnException: ${this.message}`; | 23 return `IsolateSpawnException: ${this.message}`; |
| 24 } | 24 } |
| 25 } | 25 } |
| 26 IsolateSpawnException[dart.implements] = () => [core.Exception]; | 26 IsolateSpawnException[dart.implements] = () => [core.Exception]; |
| 27 dart.setSignature(IsolateSpawnException, { | 27 dart.setSignature(IsolateSpawnException, { |
| 28 constructors: () => ({IsolateSpawnException: [IsolateSpawnException, [core.S
tring]]}) | 28 constructors: () => ({IsolateSpawnException: [IsolateSpawnException, [core.S
tring]]}) |
| 29 }); | 29 }); |
| 30 let _pause = Symbol('_pause'); | 30 const _pause = Symbol('_pause'); |
| 31 class Isolate extends core.Object { | 31 class Isolate extends core.Object { |
| 32 Isolate(controlPort, opts) { | 32 Isolate(controlPort, opts) { |
| 33 let pauseCapability = opts && 'pauseCapability' in opts ? opts.pauseCapabi
lity : null; | 33 let pauseCapability = opts && 'pauseCapability' in opts ? opts.pauseCapabi
lity : null; |
| 34 let terminateCapability = opts && 'terminateCapability' in opts ? opts.ter
minateCapability : null; | 34 let terminateCapability = opts && 'terminateCapability' in opts ? opts.ter
minateCapability : null; |
| 35 this.controlPort = controlPort; | 35 this.controlPort = controlPort; |
| 36 this.pauseCapability = pauseCapability; | 36 this.pauseCapability = pauseCapability; |
| 37 this.terminateCapability = terminateCapability; | 37 this.terminateCapability = terminateCapability; |
| 38 } | 38 } |
| 39 static get current() { | 39 static get current() { |
| 40 return Isolate._currentIsolateCache; | 40 return Isolate._currentIsolateCache; |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 this.stackTrace = stackTrace; | 220 this.stackTrace = stackTrace; |
| 221 } | 221 } |
| 222 toString() { | 222 toString() { |
| 223 return 'IsolateUnhandledException: exception while handling message: ' + `
${this.message} \n ` + `${dart.toString(this.source)[dartx.replaceAll]("\n", "\
n ")}\n` + 'original stack trace:\n ' + `${dart.toString(this.stackTrace)[dart
x.replaceAll]("\n", "\n ")}`; | 223 return 'IsolateUnhandledException: exception while handling message: ' + `
${this.message} \n ` + `${dart.toString(this.source)[dartx.replaceAll]("\n", "\
n ")}\n` + 'original stack trace:\n ' + `${dart.toString(this.stackTrace)[dart
x.replaceAll]("\n", "\n ")}`; |
| 224 } | 224 } |
| 225 } | 225 } |
| 226 _IsolateUnhandledException[dart.implements] = () => [core.Exception]; | 226 _IsolateUnhandledException[dart.implements] = () => [core.Exception]; |
| 227 dart.setSignature(_IsolateUnhandledException, { | 227 dart.setSignature(_IsolateUnhandledException, { |
| 228 constructors: () => ({_IsolateUnhandledException: [_IsolateUnhandledExceptio
n, [dart.dynamic, dart.dynamic, core.StackTrace]]}) | 228 constructors: () => ({_IsolateUnhandledException: [_IsolateUnhandledExceptio
n, [dart.dynamic, dart.dynamic, core.StackTrace]]}) |
| 229 }); | 229 }); |
| 230 let _description = Symbol('_description'); | 230 const _description = Symbol('_description'); |
| 231 class RemoteError extends core.Object { | 231 class RemoteError extends core.Object { |
| 232 RemoteError(description, stackDescription) { | 232 RemoteError(description, stackDescription) { |
| 233 this[_description] = description; | 233 this[_description] = description; |
| 234 this.stackTrace = new _RemoteStackTrace(stackDescription); | 234 this.stackTrace = new _RemoteStackTrace(stackDescription); |
| 235 } | 235 } |
| 236 toString() { | 236 toString() { |
| 237 return this[_description]; | 237 return this[_description]; |
| 238 } | 238 } |
| 239 } | 239 } |
| 240 RemoteError[dart.implements] = () => [core.Error]; | 240 RemoteError[dart.implements] = () => [core.Error]; |
| 241 dart.setSignature(RemoteError, { | 241 dart.setSignature(RemoteError, { |
| 242 constructors: () => ({RemoteError: [RemoteError, [core.String, core.String]]
}) | 242 constructors: () => ({RemoteError: [RemoteError, [core.String, core.String]]
}) |
| 243 }); | 243 }); |
| 244 let _trace = Symbol('_trace'); | 244 const _trace = Symbol('_trace'); |
| 245 class _RemoteStackTrace extends core.Object { | 245 class _RemoteStackTrace extends core.Object { |
| 246 _RemoteStackTrace(trace) { | 246 _RemoteStackTrace(trace) { |
| 247 this[_trace] = trace; | 247 this[_trace] = trace; |
| 248 } | 248 } |
| 249 toString() { | 249 toString() { |
| 250 return this[_trace]; | 250 return this[_trace]; |
| 251 } | 251 } |
| 252 } | 252 } |
| 253 _RemoteStackTrace[dart.implements] = () => [core.StackTrace]; | 253 _RemoteStackTrace[dart.implements] = () => [core.StackTrace]; |
| 254 dart.setSignature(_RemoteStackTrace, { | 254 dart.setSignature(_RemoteStackTrace, { |
| 255 constructors: () => ({_RemoteStackTrace: [_RemoteStackTrace, [core.String]]}
) | 255 constructors: () => ({_RemoteStackTrace: [_RemoteStackTrace, [core.String]]}
) |
| 256 }); | 256 }); |
| 257 // Exports: | 257 // Exports: |
| 258 exports.Capability = Capability; | 258 exports.Capability = Capability; |
| 259 exports.IsolateSpawnException = IsolateSpawnException; | 259 exports.IsolateSpawnException = IsolateSpawnException; |
| 260 exports.Isolate = Isolate; | 260 exports.Isolate = Isolate; |
| 261 exports.SendPort = SendPort; | 261 exports.SendPort = SendPort; |
| 262 exports.ReceivePort = ReceivePort; | 262 exports.ReceivePort = ReceivePort; |
| 263 exports.RawReceivePort = RawReceivePort; | 263 exports.RawReceivePort = RawReceivePort; |
| 264 exports.RemoteError = RemoteError; | 264 exports.RemoteError = RemoteError; |
| 265 }); | 265 }); |
| OLD | NEW |