Skip to content

Improve err/out implementation for node pthreads. NFC #23999

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
Mar 28, 2025

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Mar 27, 2025

The console overrides for node were not correctly formatting their arguments. i.e. all objects were showing up as [object Object]

@sbc100 sbc100 force-pushed the node_pthread_console branch from f342581 to e9c2a79 Compare March 27, 2025 17:07
@sbc100 sbc100 requested a review from kripken March 27, 2025 17:16
@sbc100 sbc100 force-pushed the node_pthread_console branch 2 times, most recently from c708398 to 5977d2e Compare March 27, 2025 17:22
@@ -1 +1 @@
4037
4045
Copy link
Member

Choose a reason for hiding this comment

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

Code size increase seems fine as this is just for node.js (and pthreads) logic.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Indeed.

@sbc100 sbc100 force-pushed the node_pthread_console branch from 5977d2e to ea38e3f Compare March 27, 2025 18:34
@sbc100 sbc100 changed the title Unify and improve err/out implementation for node pthreads. NFC Improve err/out implementation for node pthreads. NFC Mar 27, 2025
We were overriding err in two different places.

The overridden version of node was not correctly formatting its
arguments. i.e. all objects were showing up as `[object Object]`
@sbc100 sbc100 force-pushed the node_pthread_console branch from ea38e3f to 95e2c90 Compare March 27, 2025 18:35
@sbc100 sbc100 merged commit 109dd7a into emscripten-core:main Mar 28, 2025
24 checks passed
@sbc100 sbc100 deleted the node_pthread_console branch March 28, 2025 17:02
sbc100 added a commit to sbc100/emscripten that referenced this pull request May 23, 2025
This was accidentally changed to stdout in emscripten-core#23999.  Oops.

Fixed: emscripten-core#24403
sbc100 added a commit to sbc100/emscripten that referenced this pull request May 23, 2025
This was accidentally changed to stdout in emscripten-core#23999.  Oops.

Fixed: emscripten-core#24403
sbc100 added a commit to sbc100/emscripten that referenced this pull request May 23, 2025
This was accidentally changed to stdout in emscripten-core#23999.  Oops.

Fixed: emscripten-core#24403
sbc100 added a commit that referenced this pull request May 23, 2025
This was accidentally changed to stdout in #23999.  Oops.

Fixed: #24403
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