-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
tests fail if start attribute is present #2206
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
Comments
This says that |
Thanks for the fast answer @alexcrichton. No, I didn't define the I got the hint from rust-gamedev/wg#51:
I couldn't find a reason why this solves the problem, but it does. I will send a PR changing this in the example in the rust-bindgen book. |
Ok thanks for the follow-up! It sounds like this isn't a bug in wasm-bindgen so I'm going to close this. |
I just encountered this issue, and the workaround of renaming Is there another workaround? Does anyone know if this is a bug in rustc, cargo, or wasm-bindgen? |
Describe the Bug
Testing of wasm-bindgen lib fails if
#[wasm_bindgen(start)]
is present (for both browser and node).Error Message
Steps to Reproduce
Expected Behavior
I expect
wasm-pack test --node
to run all wasm-bindgen tests for node.And since the wasm-bindgen books says here:
I also expect it to not be executed. (Maybe not even part of the build).
Actual Behavior
The command fails and doesn't run any tests.
Additional Context
wasm-pack build
runs without any problems and also thepkg/
works.The text was updated successfully, but these errors were encountered: