-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TypeError: wasm.__wbindgen_global_argument_ptr is not a function #113
Comments
Thanks for the report! For the first issue can you try updating the wasm-bindgen tool and the dependency? I'm curious if that was a version mismatch going on perhaps. For the latter issue I'm digging in to see what's what! |
Thanks, @alexcrichton. I checked the CLI and the version used by Cargo. Both appeared to be 0.2.0. I've since updated to 0.2.1 (on both) and I'm still getting the TypeError issue.
$ make
|
Aha! This took me too long to find... The type error can be fixed by updating this line, you'll want to import |
Ah, crud. Thanks!!! |
Er actually, hm... So I can't actually remove I've diagnosed the |
Ok for the weird issue with |
Hi,
I'm trying to write some Rust "Hello, World!" code that can be shared between C and JavaScript. My project lives here. The C part is working, but I'm having some trouble getting the JavaScript part working. I'm following the "Basic Usage" example in this repo, the console.log example in this repo, and this example for calling Rust from C.
My first attempt used
cfg
to conditionally compile the necessary code, but it failed withsrc/lib.rs
$ make
Next, I tried to consolidate my
cfg
statements usingcfg_if
. That failed withsrc/lib.rs
$ make
The text was updated successfully, but these errors were encountered: