Chromium Code Reviews| Index: runtime/lib/isolate.dart |
| =================================================================== |
| --- runtime/lib/isolate.dart (revision 5441) |
| +++ runtime/lib/isolate.dart (working copy) |
| @@ -135,10 +135,9 @@ |
| ReceivePort _portInternal; |
| ReceivePort get _port() { |
| - if (_portInternal) { |
| - return _portInternal; |
| + if (_portInternal === null) { |
| + _portInternal = _getPortInternal(); |
| } |
| - _portInternal = _getPortInternal(); |
| return _portInternal; |
| } |