Skip to content

[wasm-split] Use Name() for nonexistent global base (NFC)#8704

Merged
aheejin merged 1 commit into
WebAssembly:mainfrom
aheejin:wasm_split_empty_name
May 15, 2026
Merged

[wasm-split] Use Name() for nonexistent global base (NFC)#8704
aheejin merged 1 commit into
WebAssembly:mainfrom
aheejin:wasm_split_empty_name

Conversation

@aheejin
Copy link
Copy Markdown
Member

@aheejin aheejin commented May 14, 2026

Rather than using an empty string, this uses Name() when an active table does not have a base global. This allows us to check for the existence of the global by just

if (tableManager.activeBase.global)

rather than

if (tableManager.activeBase.global.size())

Rather than using an empty string, this uses `Name()` when an active
table does not have a base global. This allows us to check for the
existence of the global by just
```cpp
if (tableManager.activeBase.global)
```
rather than
```cpp
if (tableManager.activeBase.global.size())
```
@aheejin aheejin requested a review from tlively May 14, 2026 21:16
@aheejin aheejin requested a review from a team as a code owner May 14, 2026 21:16
Copy link
Copy Markdown
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.

Thanks!

@aheejin aheejin merged commit e7987f6 into WebAssembly:main May 15, 2026
16 checks passed
@aheejin aheejin deleted the wasm_split_empty_name branch May 15, 2026 21:01
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