Skip to content

Conversation

aheejin
Copy link
Member

@aheejin aheejin commented Sep 11, 2025

Functions in languages like C++ have unallowed characters such as parentheses or whitespaces within their names, so if we put them in the manifest files they will not be matched with escaped names we use within Binaryen. This escapes function names when we read them from manifest files.

Functions in languages like C++ have unallowed characters such as
parentheses or whitespaces within their names, so if we put them in the
manifest files they will not be matched with escaped names we use within
Binaryen. This _escapes_ function names when we read them from manifest
files.
@aheejin aheejin requested a review from tlively September 11, 2025 23:49
Copy link
Member

@tlively tlively left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % comment

newSection = true;
continue;
}
Name func = WasmBinaryReader::escape(line);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe call this escaped or name so we don't end up with a module name in a variable called func.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Done.

@aheejin aheejin merged commit 6d886dc into WebAssembly:main Sep 12, 2025
16 checks passed
@aheejin aheejin deleted the manifest_escape branch September 12, 2025 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants