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

How to use the .call method on JsRuntime #747

Open
Jamzy01 opened this issue May 21, 2024 · 0 comments
Open

How to use the .call method on JsRuntime #747

Jamzy01 opened this issue May 21, 2024 · 0 comments

Comments

@Jamzy01
Copy link

Jamzy01 commented May 21, 2024

I was just wondering how to use the JsRuntime::call method. I can't find any decent examples online and I'm unsure how to use the method. I would expect to just pass a string of the function name, but instead it expects a reference to a Global. I can't find a way to get this Function struct though, clearly I have to somehow obtain it from the JsRuntime, but I can't figure it out. Clearly this repo is lacking in examples, which is understandable, but I would just like to know how to use this method.

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

No branches or pull requests

1 participant