Skip to content
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

Remove EM_LOG_C_STACK feature of emscripten_log #23553

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Jan 31, 2025

This was supported by emscripten-source-map.min.js which seems like minified source map parser, but I don't think this feature has worked for at least 4 years since we switched to using wasm and wasm source maps.

This feature was part of emscripten_log since it was first added in 26d6ad3 but I know of anyone that ever used it.

Fixes: #13089

@sbc100 sbc100 requested a review from kripken January 31, 2025 04:51
@sbc100 sbc100 changed the title Remove EM_LOG_C_STACK features of emscripten_log Remove EM_LOG_C_STACK feature of emscripten_log Jan 31, 2025
@sbc100 sbc100 requested review from dschuff and juj January 31, 2025 04:52
ChangeLog.md Outdated Show resolved Hide resolved
ChangeLog.md Show resolved Hide resolved
@sbc100
Copy link
Collaborator Author

sbc100 commented Feb 3, 2025

@kripken do you think its worth trying to resurect this feature? It seems like it was some kind of user-space source-map parser.. I'm not sure it worth the effort given that nobody has asked for it so many years.

@kripken
Copy link
Member

kripken commented Feb 3, 2025

I agree it's not worth keeping given the lack of users. Have people been using it with wasm2js perhaps though? If not sgtm to remove.

@sbc100
Copy link
Collaborator Author

sbc100 commented Feb 3, 2025

I agree it's not worth keeping given the lack of users. Have people been using it with wasm2js perhaps though? If not sgtm to remove.

Source maps do not work with wasm2js ( error: wasm2js does not support source maps yet (debug in wasm for now))

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

lgtm, but how about this rephrasing of the changlog? To clarify this has no impact on source maps in general.

ChangeLog.md Outdated
Comment on lines 28 to 30
- The `EM_LOG_C_STACK` flag to `emscripten_log` was deprecated and the helper
file on which it was based (`emscripten-source-map.min.js`) deteted. It
seems this feature has been broken for at least 4 years now. (#23553)
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
- The `EM_LOG_C_STACK` flag to `emscripten_log` was deprecated and the helper
file on which it was based (`emscripten-source-map.min.js`) deteted. It
seems this feature has been broken for at least 4 years now. (#23553)
- The `EM_LOG_C_STACK` flag to `emscripten_log` was deprecated and the helper
file on which it was based (`emscripten-source-map.min.js`) deleted. This
feature (userspace source map parsing in logs) was not ported to wasm
source maps, so it has not worked, and we have had no requests for it. This
has no impact on browser devtools support of source maps (which work
fully). (#23553)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done. With a little re-phrasing of my own.

This was supported by `emscripten-source-map.min.js` which seems like
minified source map parser, but I don't think this feature has worked
for at least 4 years.

This feature was part of `emscripten_log` since it was first added in
26d6ad3 but I know of anyone that ever used it.

Fixes: emscripten-core#13089
@sbc100 sbc100 merged commit b6d85fe into emscripten-core:main Feb 3, 2025
11 of 14 checks passed
@sbc100 sbc100 deleted the EM_LOG_C_STACK branch February 3, 2025 23:38
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.

emscripten_get_callstack + source maps is currently broken
2 participants