You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
module.getMemorySegmentInfoByIndex is not a function #104
I just updated from binaryen from version 116.0.0 to 123.0.0. I have not changed any of my source code. I now get this error:
module.getMemorySegmentInfoByIndex is not a function
binaryen's index.d.ts file lists this function as available, so I have no TypeScript errors. But when I log my created module object, I do not see getMemorySegmentInfoByIndex. I do however see getMemorySegmentInfo.
This seems like a major blocking issue for us. How do I get the memory segment infos now? I can't see any way to dynamically get the memory segment names. Indexes do not work, whether they are numbers or strings.
The only way I have been able to get the memory segment infos from getMemorySegmentInfo has been to emit a .wat file and manually look at the memory segment names to hard-code them. But of course we need to do this dynamically.
Before, using a combination of getNumMemorySegments and getMemorySegmentInfo yielded the memory segment infos that we needed. I no longer see an equivalent to that functionality.
Activity
lastmjs commentedon Jun 27, 2025
This seems like a major blocking issue for us. How do I get the memory segment infos now? I can't see any way to dynamically get the memory segment names. Indexes do not work, whether they are numbers or strings.
The only way I have been able to get the memory segment infos from
getMemorySegmentInfohas been to emit a.watfile and manually look at the memory segment names to hard-code them. But of course we need to do this dynamically.Before, using a combination of
getNumMemorySegmentsandgetMemorySegmentInfoyielded the memory segment infos that we needed. I no longer see an equivalent to that functionality.CountBleck commentedon Jun 27, 2025
@lastmjs so
module.getMemorySegmentInfo(String(i))isn't working?lastmjs commentedon Oct 8, 2025
@CountBleck I don't think so