Open karthik2804 opened 6 months ago
The engine to be built is lib/starlingmonkey_embedding.debug.wasm
(the release build won't work pending https://github.com/bytecodealliance/StarlingMonkey/issues/50).
To get this file, run make lib/starlingmonkey_embedding.debug.wasm
.
The StarlingMonkey build is referenced as a submodule of this repo.
Hmm actually the debug build of ComponentizeJS isn't working itself, so you do have to use a release build.
Therefore until https://github.com/bytecodealliance/StarlingMonkey/pull/53 is landed you won't be able to progress here.
The debug build was not working and the workaround I used was to modify the makefile to build a debug
build instead of RelWithDebInfo
https://github.com/bytecodealliance/ComponentizeJS/blob/519256f5632f48e42cfea54bfd588f383eccb855/Makefile#L29
and then modifying the JS script to point at the right reference. https://github.com/bytecodealliance/ComponentizeJS/blob/519256f5632f48e42cfea54bfd588f383eccb855/src/componentize.js#L41
which led me into running into the following error
Splicer error: unable to read prelude sequence, continuing for debug build but note binding functions will not work
Yes, the debug build does not work for ComponentizeJS.
Thanks! This is helpful.
Latest release build fix for StarlingMonkey is in https://github.com/bytecodealliance/StarlingMonkey/pull/53.
I've updated the internal build in https://github.com/bytecodealliance/ComponentizeJS/pull/111 as an example.
I am attempting to use the engine produced by a debug build of the PR that refactors fetch.
My understanding is that it should be sufficient to pass the
engine
argument to thecomponentize
function as below:I run into the following error.
Is there some trick to getting this to work? or is the current state of the PR incompatible? Thanks!