Skip to content
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

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

kasperisager
Copy link
Contributor

No description provided.

quickjs.h Show resolved Hide resolved
quickjs.h Outdated Show resolved Hide resolved
quickjs.h Outdated Show resolved Hide resolved
quickjs.h Outdated Show resolved Hide resolved
quickjs.h Show resolved Hide resolved
@saghul
Copy link
Contributor

saghul commented Jan 14, 2025

Thanks @kasperisager ! Feel free to open a PR adding your project here: https://quickjs-ng.github.io/quickjs/projects

@saghul saghul merged commit 7021858 into quickjs-ng:master Jan 14, 2025
59 checks passed
@@ -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);
Copy link
Contributor

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);

Copy link
Contributor

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 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants