We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
js_namespace
#[wasm_bindgen(js_namespace = ["a"])] extern "C" { #[wasm_bindgen(js_namespace = ["b"])] fn my_function(); }
The above import generates the following JS glue code:
function __wbg_myfunction_8c7b624429f78550() { b.my_function(); };
Note the function is imported as b.my_function() and that js_namespace = ["a"] is ignored.
b.my_function()
js_namespace = ["a"]
The parent js_namespace should not be ignored. The most sane behavior would probably be to import the function as a.b.my_function().
a.b.my_function()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the Bug
The above import generates the following JS glue code:
Note the function is imported as
b.my_function()
and thatjs_namespace = ["a"]
is ignored.Expected Behavior
The parent
js_namespace
should not be ignored. The most sane behavior would probably be to import the function asa.b.my_function()
.The text was updated successfully, but these errors were encountered: