Chromium Code Reviews| Index: runtime/bin/filter.cc |
| diff --git a/runtime/bin/filter.cc b/runtime/bin/filter.cc |
| index f537606609fb41a3a270e1358dde709ba0ff28a4..07facdacb573d3ab79aea048fedabe87a5421980 100644 |
| --- a/runtime/bin/filter.cc |
| +++ b/runtime/bin/filter.cc |
| @@ -154,7 +154,9 @@ void FUNCTION_NAME(Filter_Process)(Dart_NativeArguments args) { |
| uint8_t* buffer = NULL; |
| Dart_Handle result = Dart_TypedDataAcquireData( |
| data_obj, &type, reinterpret_cast<void**>(&buffer), &length); |
| + |
| if (!Dart_IsError(result)) { |
| + ASSERT(type == Dart_TypedData_kUint8 || type == Dart_TypedData_kInt8); |
|
Lasse Reichstein Nielsen
2015/10/08 11:26:57
Are we sure we want to treat Int8List as bytes?
|
| uint8_t* zlib_buffer = new uint8_t[chunk_length]; |
| if (zlib_buffer == NULL) { |
| Dart_TypedDataReleaseData(data_obj); |