Chromium Code Reviews| Index: runtime/include/dart_api.h |
| =================================================================== |
| --- runtime/include/dart_api.h (revision 38636) |
| +++ runtime/include/dart_api.h (working copy) |
| @@ -2624,6 +2624,21 @@ |
| /* TODO(turnidge): Consider returning Dart_Null() when the library is |
| * not found to distinguish that from a true error case. */ |
| + |
| +/** |
| + * Report an loading error for the library. |
| + * |
| + * \param library The library that failed to load. |
| + * \param error The error object containing the load error. |
|
Ivan Posva
2014/07/31 18:29:04
Please reword the comment to signal that this is a
hausner
2014/07/31 21:12:45
Done.
|
| + * |
| + * \return If the VM handles the error, the return value is |
| + * a null handle. If it doesn't handle the error, the error |
| + * object is returned. |
| + */ |
| +DART_EXPORT Dart_Handle Dart_LibraryHandleError(Dart_Handle library, |
| + Dart_Handle error); |
| + |
| + |
| DART_EXPORT Dart_Handle Dart_LoadLibrary(Dart_Handle url, |
| Dart_Handle source); |