| Index: runtime/lib/isolate_patch.dart
|
| diff --git a/runtime/lib/isolate_patch.dart b/runtime/lib/isolate_patch.dart
|
| index 451b21956a11ccd260b6c49f2e25a36654157726..16319a903ddb79f542f61da86cab758d251ff61c 100644
|
| --- a/runtime/lib/isolate_patch.dart
|
| +++ b/runtime/lib/isolate_patch.dart
|
| @@ -116,14 +116,15 @@ _getPortInternal() native "isolate_getPortInternal";
|
|
|
| ReceivePort _portInternal;
|
|
|
| -patch ReceivePort get port {
|
| - if (_portInternal == null) {
|
| - _portInternal = _getPortInternal();
|
| +patch class _Isolate {
|
| + /* patch */ static ReceivePort get port {
|
| + if (_portInternal == null) {
|
| + _portInternal = _getPortInternal();
|
| + }
|
| + return _portInternal;
|
| }
|
| - return _portInternal;
|
| -}
|
|
|
| -patch spawnFunction(void topLevelFunction()) native "isolate_spawnFunction";
|
| -
|
| -patch spawnUri(String uri) native "isolate_spawnUri";
|
| + /* patch */ static spawnFunction(void topLevelFunction()) native "isolate_spawnFunction";
|
|
|
| + /* patch */ static spawnUri(String uri) native "isolate_spawnUri";
|
| +}
|
|
|