Skip to content

Commit db46642

Browse files
authored
Fix omitexports0.test_emscripten_api after #25319 (#25325)
1 parent e82aeb7 commit db46642

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@ jobs:
707707
wasmfs.test_freetype
708708
minimal0.test_utf
709709
omitexports0.test_asyncify_longjmp
710+
omitexports0.test_emscripten_api
710711
strict.test_no_declare_asm_module_exports
711712
"
712713
test-modularize-instance:

src/modules.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,12 @@ function exportLibrarySymbols() {
565565
const results = ['// Begin JS library exports'];
566566
for (const ident of librarySymbols) {
567567
if (EXPORT_ALL || EXPORTED_FUNCTIONS.has(ident)) {
568+
// Special case for wasmTable which can be both a JS library symbol but
569+
// also a wasm export. See isDirectWasmExport in jsifier.mjs.
570+
// FIXME: Remove this hack
571+
if (ident == 'wasmTable' && WASM_EXPORTS.has('__indirect_function_table')) {
572+
continue;
573+
}
568574
results.push(exportSymbol(ident));
569575
}
570576
}

0 commit comments

Comments
 (0)