1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:17:45 +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:
Ali Mohammad Pur 2021-06-01 20:08:24 +04:30 committed by Ali Mohammad Pur
parent 56bf80251c
commit b250a6ae7e
2 changed files with 82 additions and 2 deletions

View file

@ -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))