Skip to content

Expose ctx->function_proto#599

Merged
saghul merged 2 commits intoquickjs-ng:masterfrom
richarddd:expose-function-proto
Oct 16, 2024
Merged

Expose ctx->function_proto#599
saghul merged 2 commits intoquickjs-ng:masterfrom
richarddd:expose-function-proto

Conversation

@richarddd
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
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
Copy Markdown
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

4 participants