Skip to content

Declare some fuzzing members as const#8255

Open
stevenfontanella wants to merge 5 commits intomainfrom
initializer
Open

Declare some fuzzing members as const#8255
stevenfontanella wants to merge 5 commits intomainfrom
initializer

Conversation

@stevenfontanella
Copy link
Member

@stevenfontanella stevenfontanella commented Jan 30, 2026

Followup to #8253 (comment). Allow us to declare loggableTypes and atomicMemoryOrders as const to prevent them from being mutated by mistake.

Base automatically changed from fuzzing to main January 30, 2026 18:46
@stevenfontanella stevenfontanella changed the title Use member initializer Use member initializer in fuzzer Jan 30, 2026
@stevenfontanella stevenfontanella marked this pull request as ready for review January 30, 2026 19:50
@stevenfontanella stevenfontanella changed the title Use member initializer in fuzzer Declare some fuzzing members as const Feb 10, 2026
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

: wasm(wasm), closedWorld(closedWorld), builder(wasm),
random(std::move(input), wasm.features),
loggableTypes(getLoggableTypes(wasm.features)),
atomicMemoryOrders(wasm.features.hasRelaxedAtomics()
Copy link
Member

Choose a reason for hiding this comment

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

Even though it's not as complicated as the logganle types, let's follow the same pattern of calling a helper function to initialize the memory orders.

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