-
-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Milestone
Description
- Version: ALL
- Platform: ALL
- Subsystem: API
Comment from Ben in : nodejs/node-eps#20 (comment)
I think most JS engines have an 'is exception pending?' function; V8 is the outlier with its TryCatch construct. API strawman:
// Wrapper around a v8::TryCatch. Dummy with other engines.
typedef struct napi_trycatch { struct napi_trycatch *v; } napi_trycatch;
NODE_EXTERN void napi_trycatch_new(napi_env e, napi_trycatch *trycatch);
// Returns exception object or undefined.
NODE_EXTERN napi_value napi_trycatch_exception(napi_env e, napi_trycatch trycatch);
NODE_EXTERN void napi_trycatch_delete(napi_env e, napi_trycatch trycatch);
Metadata
Metadata
Assignees
Labels
No labels