You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call the create_s function it fails with ReferenceError: S is not defined.
If I modify the JS file either to call __exports.S.__construct or export the class as let S = null; __exports.S = S = class S { ... } then it works as supposed.
The second way seems like a really easy fix, I'll create a pull request.
The text was updated successfully, but these errors were encountered:
ngg
added a commit
to ngg/wasm-bindgen
that referenced
this issue
May 6, 2018
Smallest example that reproduces this bug:
The generated JS file (with
--no-modules
) contains something like this:When I call the
create_s
function it fails withReferenceError: S is not defined
.If I modify the JS file either to call
__exports.S.__construct
or export the class aslet S = null; __exports.S = S = class S { ... }
then it works as supposed.The second way seems like a really easy fix, I'll create a pull request.
The text was updated successfully, but these errors were encountered: