Skip to content

Commit 1fee5d6

Browse files
authored
Remove temporary hack to set mainReadsParams. NFC (#17650)
This was set just to mimic a limitation of the old binaryen metadata extraction.
1 parent cd38dac commit 1fee5d6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

emscripten.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -447,14 +447,6 @@ def get_metadata(infile, outfile, modify_wasm, args):
447447
# When we do this we can generate new imports, so
448448
# re-read parts of the metadata post-finalize
449449
extract_metadata.update_metadata(outfile, metadata)
450-
elif 'main' in metadata['exports']:
451-
# Mimic a bug in wasm-emscripten-finalize where we don't correctly
452-
# detect the presense of the main wrapper function unless we are
453-
# modifying the binary. This is because binaryen doesn't reaad
454-
# the function bodies in this mode.
455-
# TODO(sbc): Remove this once we make the switch away from
456-
# binaryen metadata.
457-
metadata['mainReadsParams'] = 1
458450
if DEBUG:
459451
logger.debug("Metadata: " + pprint.pformat(metadata))
460452
return metadata

0 commit comments

Comments
 (0)