| Index: runtime/bin/builtin_natives.cc
|
| diff --git a/runtime/bin/builtin_natives.cc b/runtime/bin/builtin_natives.cc
|
| index 19a25d2a3ab8fd20363006439828f92bb950ba4d..5ba56371a4d78a8f87f457f210fed8370f807969 100644
|
| --- a/runtime/bin/builtin_natives.cc
|
| +++ b/runtime/bin/builtin_natives.cc
|
| @@ -91,7 +91,8 @@ void FUNCTION_NAME(Builtin_PrintString)(Dart_NativeArguments args) {
|
| if (Dart_IsError(result)) Dart_PropagateError(result);
|
|
|
| // Uses fwrite to support printing NUL bytes.
|
| - fwrite(chars, 1, length, stdout);
|
| + intptr_t res = fwrite(chars, 1, length, stdout);
|
| + ASSERT(res == length);
|
| fputs("\n", stdout);
|
| fflush(stdout);
|
| if (ShouldCaptureStdout()) {
|
|
|