Add build_table

This commit is contained in:
Mitchell Hashimoto
2026-03-30 11:33:55 -07:00
parent ee19c8ff7f
commit 624b4884c3
3 changed files with 41 additions and 65 deletions

View File

@@ -44,6 +44,10 @@ pub fn initWasm(
// Allow exported symbols to actually be exported.
exe.rdynamic = true;
// Export the indirect function table so that embedders (e.g. JS in
// a browser) can insert callback entries for terminal effects.
exe.export_table = true;
// There is no entrypoint for this wasm module.
exe.entry = .disabled;