Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/preamble.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,9 @@ var splitModuleProxyHandler = {
// When the table is dynamically laid out, the placeholder functions names
// are offsets from the table base. In the main module, the table base is
// always 1.
return wasmTable.get(1 + parseInt(prop))(...args);
return wasmTable.get(toIndexType(1 + parseInt(prop)))(...args);
#else
return wasmTable.get(prop)(...args);
return wasmTable.get(toIndexType(prop))(...args);
#endif
#endif
}
Expand Down