Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 2 additions & 3 deletions src/preamble.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,10 +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);
#else
return wasmTable.get(prop)(...args);
prop = 1 + parseInt(prop);
#endif
return wasmTable.get({{{ toIndexType('prop') }}})(...args);
#endif
}
}
Expand Down
3 changes: 3 additions & 0 deletions test/test_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -12816,6 +12816,7 @@ def test_syslog(self):
def test_syscall_stubs(self):
self.do_other_test('test_syscall_stubs.c')

@also_with_wasm64
@parameterized({
'': (False, False, False),
'custom': (True, False, False),
Expand Down Expand Up @@ -12848,6 +12849,8 @@ def test_split_module(self, customLoader, jspi, opt):
'--export-prefix=%', 'test_split_module.wasm.orig', '-o1', 'primary.wasm', '-o2', 'secondary.wasm', '--profile=profile.data']
if jspi:
wasm_split_run += ['--jspi', '--enable-reference-types']
if self.get_setting('MEMORY64'):
wasm_split_run += ['--enable-memory64']
self.run_process(wasm_split_run)

os.remove('test_split_module.wasm')
Expand Down