Skip to content

Conversation

@spotandjake
Copy link
Member

@spotandjake spotandjake commented Dec 13, 2025

I noticed that Memory.get_segment_byte_offset would segfault when you pass in a passive section. I decided to fix this by making it return an option properly, to match up with the nullish behaviour of the js api.

Breaking: This is breaking as we now return an option.

@spotandjake spotandjake self-assigned this Dec 13, 2025
@spotandjake spotandjake added the bug Something isn't working label Dec 13, 2025
@spotandjake spotandjake marked this pull request as ready for review December 13, 2025 18:58
@ospencer
Copy link
Member

Looks like the tests aren't happy.

@spotandjake spotandjake force-pushed the spotandjake-passive-memory-offset branch from 95d484d to 51801e8 Compare December 21, 2025 20:45
@spotandjake spotandjake changed the title fix: Memory.get_segment_byte_offset on Passive data sections fix~: Memory.get_segment_byte_offset on Passive data sections Dec 21, 2025
@spotandjake
Copy link
Member Author

Looks like the tests aren't happy.

I fixed them, I thought null mapped to -1 but I was wrong so instead i'm returning an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants