Skip to content

[NFC] Document reference construction in closed world#8761

Merged
kripken merged 1 commit into
WebAssembly:mainfrom
kripken:doc.closed
May 22, 2026
Merged

[NFC] Document reference construction in closed world#8761
kripken merged 1 commit into
WebAssembly:mainfrom
kripken:doc.closed

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented May 22, 2026

See #8754

@kripken kripken requested a review from a team as a code owner May 22, 2026 16:03
@kripken kripken merged commit 17d9262 into WebAssembly:main May 22, 2026
16 checks passed
@kripken kripken deleted the doc.closed branch May 22, 2026 16:55
Comment thread src/pass.h
// all user-defined types. The outside may hold on to references and pass them
// back in, but may not inspect their contents, call them, or reflect on their
// types in any way.
// back in, but may not inspect their contents, call them, construct them, or
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just remembered we should probably update the CLI help as well?

"Assume code outside of the module does not inspect or interact with "
"GC and function references, even if they are passed out. The outside "
"may hold on to them and pass them back in, but not inspect their "
"contents or call them.",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We could, but the CLI should be pretty short imo, we don't need to mention every detail there.

Maybe it should just link to the full details, in fact.

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.

3 participants