-
Notifications
You must be signed in to change notification settings - Fork 72
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
An attempt to call JS function from Rust causes panic #1
Comments
Seems this happens when Panic caused when I create context using builder like so: let ctx = Context::build(&rt)
.none()
.regex(true)
.json(true)
.date(true)
.promises(true)
.build()?; This works when context is created by calling |
Hi @katyo , Regarding using this project, what is your use case? Cause currently this library is not well tested and the parallel feature definitively has a race condition if actually used parallel because quickjs uses at least a single global variable which need to be patched. If you use it in parallel it might randomly crash currently. |
Good catch, seems I forgot to initialize base intricsics objects when using the builder |
Fixed in 458d13b |
Co-authored-by: richarddd <richarddd@users.noreply.github.com>
Hi,
This project seems to implement the best of available bindings to QuickJS and best fits to my app.
Great thank you for that awesome crate!
When I try call function, which defined in JS, in Rust and it causes panic.
My Rust code looks like:
And JS:
Full backtrace:
The text was updated successfully, but these errors were encountered: