Index: runtime/include/dart_api.h |
diff --git a/runtime/include/dart_api.h b/runtime/include/dart_api.h |
index d68737696b9de82ba7825a03d8ae49c00705b2a0..d3f54b1b48ede03ca59aad692b1cbabd5994f12d 100755 |
--- a/runtime/include/dart_api.h |
+++ b/runtime/include/dart_api.h |
@@ -308,7 +308,11 @@ DART_EXPORT Dart_Handle Dart_NewApiError(const char* error); |
* |
* Requires there to be a current isolate. |
* |
- * \param exception An instance of a Dart object to be thrown. |
+ * \param exception An instance of a Dart object to be thrown or |
+ * an ApiError or CompilationError handle. |
+ * When an ApiError or CompilationError handle is passed in |
+ * a string object of the error message is created and it becomes |
+ * the Dart object to be thrown. |
*/ |
DART_EXPORT Dart_Handle Dart_NewUnhandledExceptionError(Dart_Handle exception); |