| 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) { |
| 11 this.message = message; | 11 this.message = message; |
| 12 } | 12 } |
| 13 toString() { | 13 toString() { |
| 14 return `IsolateSpawnException: ${this.message}`; | 14 return `IsolateSpawnException: ${this.message}`; |
| 15 } | 15 } |
| 16 } | 16 } |
| 17 IsolateSpawnException[dart.implements] = [core.Exception]; | 17 IsolateSpawnException[dart.implements] = () => [core.Exception]; |
| 18 let _currentIsolateCache = Symbol('_currentIsolateCache'); | 18 let _currentIsolateCache = Symbol('_currentIsolateCache'); |
| 19 let _pause = Symbol('_pause'); | 19 let _pause = Symbol('_pause'); |
| 20 class Isolate extends core.Object { | 20 class Isolate extends core.Object { |
| 21 Isolate(controlPort, opts) { | 21 Isolate(controlPort, opts) { |
| 22 let pauseCapability = opts && 'pauseCapability' in opts ? opts.pauseCapabi
lity : null; | 22 let pauseCapability = opts && 'pauseCapability' in opts ? opts.pauseCapabi
lity : null; |
| 23 let terminateCapability = opts && 'terminateCapability' in opts ? opts.ter
minateCapability : null; | 23 let terminateCapability = opts && 'terminateCapability' in opts ? opts.ter
minateCapability : null; |
| 24 this.controlPort = controlPort; | 24 this.controlPort = controlPort; |
| 25 this.pauseCapability = pauseCapability; | 25 this.pauseCapability = pauseCapability; |
| 26 this.terminateCapability = terminateCapability; | 26 this.terminateCapability = terminateCapability; |
| 27 } | 27 } |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 Isolate.IMMEDIATE = 0; | 150 Isolate.IMMEDIATE = 0; |
| 151 Isolate.BEFORE_NEXT_EVENT = 1; | 151 Isolate.BEFORE_NEXT_EVENT = 1; |
| 152 Isolate.AS_EVENT = 2; | 152 Isolate.AS_EVENT = 2; |
| 153 dart.defineLazyProperties(Isolate, { | 153 dart.defineLazyProperties(Isolate, { |
| 154 get _currentIsolateCache() { | 154 get _currentIsolateCache() { |
| 155 return _isolate_helper.IsolateNatives.currentIsolate; | 155 return _isolate_helper.IsolateNatives.currentIsolate; |
| 156 } | 156 } |
| 157 }); | 157 }); |
| 158 class SendPort extends core.Object { | 158 class SendPort extends core.Object { |
| 159 } | 159 } |
| 160 SendPort[dart.implements] = [Capability]; | 160 SendPort[dart.implements] = () => [Capability]; |
| 161 class ReceivePort extends core.Object { | 161 class ReceivePort extends core.Object { |
| 162 ReceivePort() { | 162 ReceivePort() { |
| 163 return new _isolate_helper.ReceivePortImpl(); | 163 return new _isolate_helper.ReceivePortImpl(); |
| 164 } | 164 } |
| 165 fromRawReceivePort(rawPort) { | 165 fromRawReceivePort(rawPort) { |
| 166 return new _isolate_helper.ReceivePortImpl.fromRawReceivePort(rawPort); | 166 return new _isolate_helper.ReceivePortImpl.fromRawReceivePort(rawPort); |
| 167 } | 167 } |
| 168 } | 168 } |
| 169 ReceivePort[dart.implements] = [async.Stream]; | 169 ReceivePort[dart.implements] = () => [async.Stream]; |
| 170 dart.defineNamedConstructor(ReceivePort, 'fromRawReceivePort'); | 170 dart.defineNamedConstructor(ReceivePort, 'fromRawReceivePort'); |
| 171 class RawReceivePort extends core.Object { | 171 class RawReceivePort extends core.Object { |
| 172 RawReceivePort(handler) { | 172 RawReceivePort(handler) { |
| 173 if (handler === void 0) | 173 if (handler === void 0) |
| 174 handler = null; | 174 handler = null; |
| 175 return new _isolate_helper.RawReceivePortImpl(handler); | 175 return new _isolate_helper.RawReceivePortImpl(handler); |
| 176 } | 176 } |
| 177 } | 177 } |
| 178 class _IsolateUnhandledException extends core.Object { | 178 class _IsolateUnhandledException extends core.Object { |
| 179 _IsolateUnhandledException(message, source, stackTrace) { | 179 _IsolateUnhandledException(message, source, stackTrace) { |
| 180 this.message = message; | 180 this.message = message; |
| 181 this.source = source; | 181 this.source = source; |
| 182 this.stackTrace = stackTrace; | 182 this.stackTrace = stackTrace; |
| 183 } | 183 } |
| 184 toString() { | 184 toString() { |
| 185 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 ")}`; | 185 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 ")}`; |
| 186 } | 186 } |
| 187 } | 187 } |
| 188 _IsolateUnhandledException[dart.implements] = [core.Exception]; | 188 _IsolateUnhandledException[dart.implements] = () => [core.Exception]; |
| 189 let _description = Symbol('_description'); | 189 let _description = Symbol('_description'); |
| 190 class RemoteError extends core.Object { | 190 class RemoteError extends core.Object { |
| 191 RemoteError(description, stackDescription) { | 191 RemoteError(description, stackDescription) { |
| 192 this[_description] = description; | 192 this[_description] = description; |
| 193 this.stackTrace = new _RemoteStackTrace(stackDescription); | 193 this.stackTrace = new _RemoteStackTrace(stackDescription); |
| 194 } | 194 } |
| 195 toString() { | 195 toString() { |
| 196 return this[_description]; | 196 return this[_description]; |
| 197 } | 197 } |
| 198 } | 198 } |
| 199 RemoteError[dart.implements] = [core.Error]; | 199 RemoteError[dart.implements] = () => [core.Error]; |
| 200 let _trace = Symbol('_trace'); | 200 let _trace = Symbol('_trace'); |
| 201 class _RemoteStackTrace extends core.Object { | 201 class _RemoteStackTrace extends core.Object { |
| 202 _RemoteStackTrace(trace) { | 202 _RemoteStackTrace(trace) { |
| 203 this[_trace] = trace; | 203 this[_trace] = trace; |
| 204 } | 204 } |
| 205 toString() { | 205 toString() { |
| 206 return this[_trace]; | 206 return this[_trace]; |
| 207 } | 207 } |
| 208 } | 208 } |
| 209 _RemoteStackTrace[dart.implements] = [core.StackTrace]; | 209 _RemoteStackTrace[dart.implements] = () => [core.StackTrace]; |
| 210 // Exports: | 210 // Exports: |
| 211 exports.Capability = Capability; | 211 exports.Capability = Capability; |
| 212 exports.IsolateSpawnException = IsolateSpawnException; | 212 exports.IsolateSpawnException = IsolateSpawnException; |
| 213 exports.Isolate = Isolate; | 213 exports.Isolate = Isolate; |
| 214 exports.SendPort = SendPort; | 214 exports.SendPort = SendPort; |
| 215 exports.ReceivePort = ReceivePort; | 215 exports.ReceivePort = ReceivePort; |
| 216 exports.RawReceivePort = RawReceivePort; | 216 exports.RawReceivePort = RawReceivePort; |
| 217 exports.RemoteError = RemoteError; | 217 exports.RemoteError = RemoteError; |
| 218 })(isolate || (isolate = {})); | 218 })(isolate || (isolate = {})); |
| OLD | NEW |