Repository navigation
[embind] Rename rawType -> typeID. NFC - #28157
Merged
Merged
Conversation
There was a problem hiding this comment.
Code Review
This pull request systematically renames various raw type parameters to use a TypeID suffix (such as typeID, pointerTypeID, and baseClassTypeID) across libembind.js, libembind_gen.js, and libembind_shared.js to improve naming consistency. The review comments correctly identify that rawValueType in the _embind_register_enum function was missed in both libembind.js and libembind_gen.js, and they provide actionable suggestions to rename it to valueTypeID for complete consistency.
rawType / raw*Type to typeID / *TypeID. NFCrawType -> typeID. NFC
brendandahl
reviewed
Nov 4, 2026
brendandahl
left a comment
Collaborator
There was a problem hiding this comment.
There's a few more that don't use the word raw that we should probably update to. May be worth having gemini do one more pass.
Rename `rawType` and related `raw*Type` variables/parameters in embind JS code to `typeID` and `*TypeID`. This matches the existing `// typeID -> ...` comments and C++ `TYPEID` typedef and makes it clear that these hold numeric `TYPEID` pointers rather than type names or registered type objects. Inspired by the question/confusion in: emscripten-core#28138 (comment)
Collaborator
Author
|
Done! |
brendandahl
approved these changes
Nov 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rename
rawTypeand relatedraw*Typevariables/parameters in embind JS code totypeIDand*TypeID. This matches the existing// typeID -> ...comments and C++TYPEIDtypedef and makes it clear that these hold numericTYPEIDpointers rather than type names or registered type objects.Inspired by the question/confusion in:
#28138 (comment)