Chromium Code Reviews| Index: bin/crypto.cc |
| =================================================================== |
| --- bin/crypto.cc (revision 18484) |
| +++ bin/crypto.cc (working copy) |
| @@ -23,7 +23,7 @@ |
| delete[] buffer; |
| Dart_ThrowException(DartUtils::NewDartOSError()); |
| } |
| - Dart_Handle result = Dart_NewByteArray(count); |
| + Dart_Handle result = Dart_NewTypedData(kUint8, count); |
| if (Dart_IsError(result)) { |
| delete[] buffer; |
| Dart_Handle error = DartUtils::NewString("Failed to allocate storage."); |