mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:27:35 +00:00
wasm: Add a way to create dummy function exports
This should allow running modules with their imports stubbed out in wasm, to debug them.
This commit is contained in:
parent
56bf80251c
commit
b250a6ae7e
2 changed files with 82 additions and 2 deletions
|
@ -499,7 +499,7 @@ class ImportSection {
|
|||
public:
|
||||
class Import {
|
||||
public:
|
||||
using ImportDesc = Variant<TypeIndex, TableType, MemoryType, GlobalType>;
|
||||
using ImportDesc = Variant<TypeIndex, TableType, MemoryType, GlobalType, FunctionType>;
|
||||
Import(String module, String name, ImportDesc description)
|
||||
: m_module(move(module))
|
||||
, m_name(move(name))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue