| Index: runtime/include/dart_api.h
|
| diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h
|
| index 15114a666ad4b63476431f8c42715fbb39de4108..9042eff1575d621e354c3bb8e710b8ab2f5addd9 100755
|
| --- a/runtime/include/dart_api.h
|
| +++ b/runtime/include/dart_api.h
|
| @@ -368,7 +368,6 @@ DART_EXPORT void _Dart_ReportErrorHandle(const char* file,
|
| } \
|
| } \
|
|
|
| -
|
| /**
|
| * Converts an object to a string.
|
| *
|
| @@ -863,9 +862,10 @@ typedef bool (*Dart_EntropySource)(uint8_t* buffer, intptr_t length);
|
| * \param shutdown A function to be called when an isolate is shutdown.
|
| * See Dart_IsolateShutdownCallback.
|
| *
|
| - * \return True if initialization is successful.
|
| + * \return NULL if initialization is successful. Returns an error message
|
| + * otherwise. The caller is responsible for freeing the error message.
|
| */
|
| -DART_EXPORT bool Dart_Initialize(
|
| +DART_EXPORT char* Dart_Initialize(
|
| const uint8_t* vm_isolate_snapshot,
|
| const uint8_t* instructions_snapshot,
|
| Dart_IsolateCreateCallback create,
|
| @@ -881,9 +881,10 @@ DART_EXPORT bool Dart_Initialize(
|
| /**
|
| * Cleanup state in the VM before process termination.
|
| *
|
| - * \return True if cleanup is successful.
|
| + * \return NULL if cleanup is successful. Returns an error message otherwise.
|
| + * The caller is responsible for freeing the error message.
|
| */
|
| -DART_EXPORT bool Dart_Cleanup();
|
| +DART_EXPORT char* Dart_Cleanup();
|
|
|
| /**
|
| * Sets command line flags. Should be called before Dart_Initialize.
|
|
|