migueldeicaza / mono-wasm

MIT License
528 stars 31 forks source link

Referencing an assembly with a "." (dot) in the name fails #7

Open jeromelaban opened 6 years ago

jeromelaban commented 6 years ago

Using the latest bits of all the dependencies as of this post's date, referencing an assembly which contains a "." (dot) in its name fails with the following message in Chrome (and fails silently in Edge):

Uncaught (in promise) LinkError: WebAssembly Instantiation: Import #197 module="env" function="mono_aot_module_test.test_info" error: global import must be a number
    at <anonymous>
Promise.then (async)
(anonymous) @ index.js:215

See this branch for reference: https://github.com/jeromelaban/mono-wasm/commit/a5c4175b5b8eb27833965fc5a405b2c8eef6048c

An assembly name without a dot works properly.