Chromium Code Reviews| Index: mojo/dart/packages/mojo/lib/src/stub.dart |
| diff --git a/mojo/dart/packages/mojo/lib/src/stub.dart b/mojo/dart/packages/mojo/lib/src/stub.dart |
| index dce10388d67af4bda2dd89967035932d768378c6..ea09ae36467a34445595c894463a681ec68e9f45 100644 |
| --- a/mojo/dart/packages/mojo/lib/src/stub.dart |
| +++ b/mojo/dart/packages/mojo/lib/src/stub.dart |
| @@ -69,7 +69,8 @@ abstract class Stub extends core.MojoEventHandler { |
| // FailedPrecondition is only used to indicate that the other end of |
| // the pipe has been closed. We can ignore the close here and wait for |
| // the PeerClosed signal on the event stream. |
| - assert(endpoint.status.isOk || endpoint.status.isFailedPrecondition); |
| + assert((endpoint.status == core.MojoResult.kOk) || |
| + (endpoint.status == core.MojoResult.kFailedPrecondition)); |
|
Cutch
2015/11/17 00:01:51
Indentation on line 73
zra
2015/11/17 14:57:29
Unfortunately, this is the result of the Dart form
|
| if (_isClosing && (_outstandingResponseFutures == 0)) { |
| // This was the final response future for which we needed to send |
| // a response. It is safe to close. |