Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(797)

Unified Diff: mojo/public/dart/src/message_pipe.dart

Issue 996923003: Dart: Better handle leak checks. close() is async. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix regexes Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/dart/src/message_pipe.dart
diff --git a/mojo/public/dart/src/message_pipe.dart b/mojo/public/dart/src/message_pipe.dart
index 1d5e776c5e8861216925b8d3b7365bef67114f56..5021c78315d1616ca714fc56636b1db33d6cef76 100644
--- a/mojo/public/dart/src/message_pipe.dart
+++ b/mojo/public/dart/src/message_pipe.dart
@@ -82,7 +82,7 @@ class MojoMessagePipeEndpoint {
dataNumBytes = (numBytes == -1) ? data.lengthInBytes : numBytes;
if (dataNumBytes > data.lengthInBytes) {
status = MojoResult.INVALID_ARGUMENT;
- return status;
+ return null;
}
}

Powered by Google App Engine
This is Rietveld 408576698