-
Notifications
You must be signed in to change notification settings - Fork 1.2k
JsHasException
Determines whether the runtime of the current context is in an exception state.
STDAPI_(JsErrorCode)
JsHasException(
_Out_ bool *hasException);
- hasException: Whether the runtime of the current context is in the exception state.
The code JsNoError if the operation succeeded, a failure code otherwise.
If a call into the runtime results in an exception (either as the result of running a script or due to something like a conversion failure), the runtime is placed into an "exception state." All calls into any context created by the runtime (except for the exception APIs) will fail with JsErrorInExceptionState until the exception is cleared. If the runtime of the current context is in the exception state when a callback returns into the engine, the engine will automatically rethrow the exception. Requires an active script context.
- Architecture Overview
- Building ChakraCore
- ChakraCore Code Structure
- Contributor Guidance
- Engineering Notes
- Embedding ChakraCore
- Testing ChakraCore
- Getting ChakraCore binaries
- Label Glossary
- Resources
- Roadmap / Release Notes
Want to contribute to this Wiki? Fork it and send a pull request!