Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Expose ctx->function_proto #599

Merged
merged 2 commits into from
Oct 16, 2024
Merged

Conversation

richarddd
Copy link
Contributor

This is the last patch required by rquickjs. Would be nice to get rid of it :)

Copy link
Contributor

@saghul saghul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment. Out of curiosity, how are you using this?

@richarddd
Copy link
Contributor Author

Minor comment. Out of curiosity, how are you using this?

It's used to expose Rust closures to QuickJS. Each closure is registered as an instance of a special class RustFunction:
https://github.com/DelSkayn/rquickjs/blob/3af3f46b13eb89a2694e5e4e2e73924a20fa9dd1/core/src/value/function/ffi.rs#L111

@saghul saghul merged commit afeeebf into quickjs-ng:master Oct 16, 2024
52 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants