OLD | NEW |
1 var isolate; | 1 var isolate; |
2 (function(exports) { | 2 (function(exports) { |
3 'use strict'; | 3 'use strict'; |
4 class Capability extends core.Object { | 4 class Capability extends core.Object { |
5 Capability() { | 5 Capability() { |
6 return new _isolate_helper.CapabilityImpl(); | 6 return new _isolate_helper.CapabilityImpl(); |
7 } | 7 } |
8 } | 8 } |
9 class IsolateSpawnException extends core.Object { | 9 class IsolateSpawnException extends core.Object { |
10 IsolateSpawnException(message) { | 10 IsolateSpawnException(message) { |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 return new _isolate_helper.RawReceivePortImpl(handler); | 178 return new _isolate_helper.RawReceivePortImpl(handler); |
179 } | 179 } |
180 } | 180 } |
181 class _IsolateUnhandledException extends core.Object { | 181 class _IsolateUnhandledException extends core.Object { |
182 _IsolateUnhandledException(message, source, stackTrace) { | 182 _IsolateUnhandledException(message, source, stackTrace) { |
183 this.message = message; | 183 this.message = message; |
184 this.source = source; | 184 this.source = source; |
185 this.stackTrace = stackTrace; | 185 this.stackTrace = stackTrace; |
186 } | 186 } |
187 toString() { | 187 toString() { |
188 return 'IsolateUnhandledException: exception while handling message: ' + `
${this.message} \n ` + `${dart.dinvoke(dart.dinvoke(this.source, 'toString'), '
replaceAll', "\n", "\n ")}\n` + 'original stack trace:\n ' + `${this.stackTrac
e.toString().replaceAll("\n", "\n ")}`; | 188 return 'IsolateUnhandledException: exception while handling message: ' + `
${this.message} \n ` + `${this.source.toString().replaceAll("\n", "\n ")}\n` +
'original stack trace:\n ' + `${this.stackTrace.toString().replaceAll("\n", "\
n ")}`; |
189 } | 189 } |
190 } | 190 } |
191 _IsolateUnhandledException[dart.implements] = () => [core.Exception]; | 191 _IsolateUnhandledException[dart.implements] = () => [core.Exception]; |
192 let _description = Symbol('_description'); | 192 let _description = Symbol('_description'); |
193 class RemoteError extends core.Object { | 193 class RemoteError extends core.Object { |
194 RemoteError(description, stackDescription) { | 194 RemoteError(description, stackDescription) { |
195 this[_description] = description; | 195 this[_description] = description; |
196 this.stackTrace = new _RemoteStackTrace(stackDescription); | 196 this.stackTrace = new _RemoteStackTrace(stackDescription); |
197 } | 197 } |
198 toString() { | 198 toString() { |
(...skipping 13 matching lines...) Expand all Loading... |
212 _RemoteStackTrace[dart.implements] = () => [core.StackTrace]; | 212 _RemoteStackTrace[dart.implements] = () => [core.StackTrace]; |
213 // Exports: | 213 // Exports: |
214 exports.Capability = Capability; | 214 exports.Capability = Capability; |
215 exports.IsolateSpawnException = IsolateSpawnException; | 215 exports.IsolateSpawnException = IsolateSpawnException; |
216 exports.Isolate = Isolate; | 216 exports.Isolate = Isolate; |
217 exports.SendPort = SendPort; | 217 exports.SendPort = SendPort; |
218 exports.ReceivePort = ReceivePort; | 218 exports.ReceivePort = ReceivePort; |
219 exports.RawReceivePort = RawReceivePort; | 219 exports.RawReceivePort = RawReceivePort; |
220 exports.RemoteError = RemoteError; | 220 exports.RemoteError = RemoteError; |
221 })(isolate || (isolate = {})); | 221 })(isolate || (isolate = {})); |
OLD | NEW |