-
Notifications
You must be signed in to change notification settings - Fork 15
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
assert
blows up in v1.3.0
#111
Comments
hmmm.. maybe the rquickjs runtime doesn't have whatever inner method we're wrapping in JS in the test library. |
yeah, the host function in |
It's odd - I don't see anything calling any JS builtin functions that would imply the runtime is missing something: https://github.com/dylibso/xtp-test-js/blob/main/index.ts#L220-L228 |
I think @bhelx had some idea what might be going wrong |
Ok, the stack says the js-pdk/crates/core/src/globals.rs Lines 482 to 486 in 05cecf2
|
Nice! how did you get the stack? even setting |
It's in your initial pasted output 😆 - sorry, not the wasm stack, just Rust's when the code panics |
I have been staring at this error almost all day, and didn't see that |
Been there, done that! It happens 🙇 |
I think this is because rquickjs is a little more strict about types - we have to use BigInt values for Extism pointer parameters. It seems like the option with the least friction might be to update the js-pdk to allow We could also update xtp-test-js to pass arguments as |
index.ts:
extism-js v1.3.0
extism-js v1.2.0
Full Repro: mhmd-azeez/assertbug
The text was updated successfully, but these errors were encountered: