Skip to content

Make wasmOffsetConvert usage more localized in libstack_trace.js. NFC #24599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jun 17, 2025

I noticed this while investigating #24587.

@sbc100 sbc100 force-pushed the offset_converter branch from 61fd0d5 to a1135df Compare June 17, 2025 22:15
@sbc100 sbc100 requested review from kripken and RReverser June 17, 2025 22:16
Comment on lines +118 to 119
#endif
return wasmOffsetConverter.convert(+match[1], +match[2]);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#endif
return wasmOffsetConverter.convert(+match[1], +match[2]);
return wasmOffsetConverter.convert(+match[1], +match[2]);
#endif

May as well only emit it when it is enabled.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That is the case already... this code is already part of the #else block right?

Copy link
Member

Choose a reason for hiding this comment

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

Oh sorry, I missed the if for ASSERTIONS... lgtm as is

@sbc100 sbc100 merged commit bbe1752 into emscripten-core:main Jun 17, 2025
30 checks passed
@sbc100 sbc100 deleted the offset_converter branch June 17, 2025 23:59
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