| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3 * for details. All rights reserved. Use of this source code is governed by a | 3 * for details. All rights reserved. Use of this source code is governed by a |
| 4 * BSD-style license that can be found in the LICENSE file. | 4 * BSD-style license that can be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef INCLUDE_DART_API_H_ | 7 #ifndef INCLUDE_DART_API_H_ |
| 8 #define INCLUDE_DART_API_H_ | 8 #define INCLUDE_DART_API_H_ |
| 9 | 9 |
| 10 /** \mainpage Dart Embedding API Reference | 10 /** \mainpage Dart Embedding API Reference |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 290 |
| 291 /** | 291 /** |
| 292 * Produces a new unhandled exception error handle. | 292 * Produces a new unhandled exception error handle. |
| 293 * | 293 * |
| 294 * Requires there to be a current isolate. | 294 * Requires there to be a current isolate. |
| 295 * | 295 * |
| 296 * \param exception An instance of a Dart object to be thrown. | 296 * \param exception An instance of a Dart object to be thrown. |
| 297 */ | 297 */ |
| 298 DART_EXPORT Dart_Handle Dart_NewUnhandledExceptionError(Dart_Handle exception); | 298 DART_EXPORT Dart_Handle Dart_NewUnhandledExceptionError(Dart_Handle exception); |
| 299 | 299 |
| 300 /* Deprecated. */ | |
| 301 /* TODO(turnidge): Remove all uses and delete. */ | |
| 302 DART_EXPORT Dart_Handle Dart_Error(const char* error); | |
| 303 | |
| 304 /** | 300 /** |
| 305 * Propagates an error. | 301 * Propagates an error. |
| 306 * | 302 * |
| 307 * If the provided handle is an unhandled exception error, this | 303 * If the provided handle is an unhandled exception error, this |
| 308 * function will cause the unhandled exception to be rethrown. This | 304 * function will cause the unhandled exception to be rethrown. This |
| 309 * will proceeed in the standard way, walking up Dart frames until an | 305 * will proceeed in the standard way, walking up Dart frames until an |
| 310 * appropriate 'catch' block is found, executing 'finally' blocks, | 306 * appropriate 'catch' block is found, executing 'finally' blocks, |
| 311 * etc. | 307 * etc. |
| 312 * | 308 * |
| 313 * If the error is not an unhandled exception error, we will unwind | 309 * If the error is not an unhandled exception error, we will unwind |
| (...skipping 1997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2311 * | 2307 * |
| 2312 * \param object An object. | 2308 * \param object An object. |
| 2313 * \param peer A value to store in the peer field. | 2309 * \param peer A value to store in the peer field. |
| 2314 * | 2310 * |
| 2315 * \return Returns an error if 'object' is a subtype of Null, num, or | 2311 * \return Returns an error if 'object' is a subtype of Null, num, or |
| 2316 * bool. | 2312 * bool. |
| 2317 */ | 2313 */ |
| 2318 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); | 2314 DART_EXPORT Dart_Handle Dart_SetPeer(Dart_Handle object, void* peer); |
| 2319 | 2315 |
| 2320 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ | 2316 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ |
| OLD | NEW |