Skip to content

wasm shared library preload-plugin loading just preloads, need to doc that people must load the lib later (and loadDynamicLibrary must look in preloaded libs) #7220

@waterlike86

Description

@waterlike86

ref : #6663
i have a function in a side module which i call during Module['onRuntimeInitialized'] called FOO which is exported from my side module using EMSCRIPTEN_KEEPALIVE

i used to be able to call Module ["_FOO" ](), I seems that after this PR i am not longer able to find this function.
i found that while using --use-preload-plugins, handle was calling Module['loadWebAssemblyModule'] directly, but the code to import the symbols into the Module object was in loadDynamicLibrary, so we can never find the functions exported in the side modules

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions