The current unpkg.com URL in factory.ts ignores the patch version (that is, the "0" in 1.15.0), which means it will always load the latest patch version of glue.wasm (e.g. from 1.15.1 even if the project depends on the 1.15.0 version.
Unfortunately, for example, the glue.wasm in version 1.15.1 does not seem to be compatible with 1.15.0. Some tests:
Version 1.15.0: new LuaFactory('https://unpkg.com/wasmoon@1.15.0/dist/glue.wasm').createEngine...: :heavy_check_mark:
Version 1.15.1: new LuaFactory('https://unpkg.com/wasmoon@1.15.1/dist/glue.wasm').createEngine...: :heavy_check_mark:
Version 1.15.0: new LuaFactory('https://unpkg.com/wasmoon@1.15/dist/glue.wasm').createEngine...: :red_square:
Uncaught (in promise) RuntimeError: index out of bounds
...
The current
unpkg.com
URL infactory.ts
ignores the patch version (that is, the "0" in 1.15.0), which means it will always load the latest patch version ofglue.wasm
(e.g. from 1.15.1 even if the project depends on the 1.15.0 version.Unfortunately, for example, the
glue.wasm
in version 1.15.1 does not seem to be compatible with 1.15.0. Some tests:new LuaFactory('https://unpkg.com/wasmoon@1.15.0/dist/glue.wasm').createEngine...
: :heavy_check_mark:new LuaFactory('https://unpkg.com/wasmoon@1.15.1/dist/glue.wasm').createEngine...
: :heavy_check_mark:Version 1.15.0:
new LuaFactory('https://unpkg.com/wasmoon@1.15/dist/glue.wasm').createEngine...
: :red_square: