-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose JS_ToBoolean()
, JS_ToNumber()
, JS_ToObject()
, and JS_SetUncatchableError()
#824
Conversation
…tUncatchableError()`
Thanks @kasperisager ! Feel free to open a PR adding your project here: https://quickjs-ng.github.io/quickjs/projects |
@@ -616,6 +616,7 @@ JS_EXTERN JSValue JS_Throw(JSContext *ctx, JSValue obj); | |||
JS_EXTERN JSValue JS_GetException(JSContext *ctx); | |||
JS_EXTERN JS_BOOL JS_HasException(JSContext *ctx); | |||
JS_EXTERN JS_BOOL JS_IsError(JSContext *ctx, JSValue val); | |||
JS_EXTERN void JS_SetUncatchableError(JSContext *ctx, JSValue val, JS_BOOL flag); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I won't PR right away because that conflicts with #821 but IMO flag
is too cryptic and should have been called something like is_uncatchable
, or have been left out and been replaced with:
JS_EXTERN void JS_SetUncatchableError(JSContext *ctx, JSValue val);
JS_EXTERN void JS_ClearUncatchableError(JSContext *ctx, JSValue val);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do, I'll rebase no problem. Sorry I pulled trigger too quickly 😄
No description provided.