-
-
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
Allow JS functions to be imported inside of non-public modules #201
Comments
I unfortunately don't know of a great way to solve this, but if anyone else knows how to work around this I'd be more than willing to implement a solution! |
I've started a branch at https://github.com/rustwasm/wasm-bindgen/tree/used to game out the usage of |
Ok I've ironed out various kinks in the branch and it looks like two more things are still needed to implement this:
|
These compiler bugs have now been fixed on nightly, so we just need to wait for the bug fixes to ride the trains to be available to everyone! Closes rustwasm#201
I wanted to access the JS console as
console::log
, so I attempted this:The compiler had this warning:
And
wasm-bindgen
had this to say:Making the
console
module public worked, but it wasn't my goal to make it public.rustc 1.27.0-nightly (acd3871ba 2018-05-10)
wasm-bindgen 0.2.10
See also #159
The text was updated successfully, but these errors were encountered: