Skip to content

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
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.

4 participants