| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 } | 148 } |
| 149 } | 149 } |
| 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 } | |
| 160 SendPort[dart.implements] = [Capability]; | 159 SendPort[dart.implements] = [Capability]; |
| 161 class ReceivePort extends core.Object { | 160 dart.defineLazyClass(exports, { |
| 162 ReceivePort() { | 161 get ReceivePort() { |
| 163 return new _isolate_helper.ReceivePortImpl(); | 162 class ReceivePort extends core.Object { |
| 163 ReceivePort() { |
| 164 return new _isolate_helper.ReceivePortImpl(); |
| 165 } |
| 166 fromRawReceivePort(rawPort) { |
| 167 return new _isolate_helper.ReceivePortImpl.fromRawReceivePort(rawPort)
; |
| 168 } |
| 169 } |
| 170 ReceivePort[dart.implements] = [async.Stream]; |
| 171 dart.defineNamedConstructor(ReceivePort, 'fromRawReceivePort'); |
| 172 return ReceivePort; |
| 164 } | 173 } |
| 165 fromRawReceivePort(rawPort) { | 174 }); |
| 166 return new _isolate_helper.ReceivePortImpl.fromRawReceivePort(rawPort); | |
| 167 } | |
| 168 } | |
| 169 ReceivePort[dart.implements] = [async.Stream]; | |
| 170 dart.defineNamedConstructor(ReceivePort, 'fromRawReceivePort'); | |
| 171 class RawReceivePort extends core.Object { | 175 class RawReceivePort extends core.Object { |
| 172 RawReceivePort(handler) { | 176 RawReceivePort(handler) { |
| 173 if (handler === void 0) | 177 if (handler === void 0) |
| 174 handler = null; | 178 handler = null; |
| 175 return new _isolate_helper.RawReceivePortImpl(handler); | 179 return new _isolate_helper.RawReceivePortImpl(handler); |
| 176 } | 180 } |
| 177 } | 181 } |
| 178 class _IsolateUnhandledException extends core.Object { | 182 class _IsolateUnhandledException extends core.Object { |
| 179 _IsolateUnhandledException(message, source, stackTrace) { | 183 _IsolateUnhandledException(message, source, stackTrace) { |
| 180 this.message = message; | 184 this.message = message; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 205 toString() { | 209 toString() { |
| 206 return this[_trace]; | 210 return this[_trace]; |
| 207 } | 211 } |
| 208 } | 212 } |
| 209 _RemoteStackTrace[dart.implements] = [core.StackTrace]; | 213 _RemoteStackTrace[dart.implements] = [core.StackTrace]; |
| 210 // Exports: | 214 // Exports: |
| 211 exports.Capability = Capability; | 215 exports.Capability = Capability; |
| 212 exports.IsolateSpawnException = IsolateSpawnException; | 216 exports.IsolateSpawnException = IsolateSpawnException; |
| 213 exports.Isolate = Isolate; | 217 exports.Isolate = Isolate; |
| 214 exports.SendPort = SendPort; | 218 exports.SendPort = SendPort; |
| 215 exports.ReceivePort = ReceivePort; | |
| 216 exports.RawReceivePort = RawReceivePort; | 219 exports.RawReceivePort = RawReceivePort; |
| 217 exports.RemoteError = RemoteError; | 220 exports.RemoteError = RemoteError; |
| 218 })(isolate || (isolate = {})); | 221 })(isolate || (isolate = {})); |
| OLD | NEW |