Skip to content

Test that segments are evaluated only once in array.{new,init}_elem#2136

Open
fitzgen wants to merge 2 commits intoWebAssembly:mainfrom
fitzgen:test-segments-evaluated-once
Open

Test that segments are evaluated only once in array.{new,init}_elem#2136
fitzgen wants to merge 2 commits intoWebAssembly:mainfrom
fitzgen:test-segments-evaluated-once

Conversation

@fitzgen
Copy link
Copy Markdown
Contributor

@fitzgen fitzgen commented Apr 7, 2026

And are not re-evaluated each time, which would produce objects that are not ref.eq to earlier evaluations.

Copy link
Copy Markdown
Member

@rossberg rossberg left a comment

Choose a reason for hiding this comment

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

Good idea, these are good test to add! Shouldn't we add a similar test for table.init?

@fitzgen
Copy link
Copy Markdown
Contributor Author

fitzgen commented Apr 7, 2026

Shouldn't we add a similar test for table.init?

Just pushed another commit with a test for table.init

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