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

Fix pthread + modularize + running in node worker #21832

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Apr 25, 2024

The issue here was the special case for the setting of scriptDirectory under
nodejs when ENVIRONMENT_IS_WORKER.

Previously this path was not being hit when the main thread was running in
a worker because we were not setting ENVIRONMENT_IS_WORKER in
this case. This was fixed in #21701 and ENVIRONMENT_IS_WORKER
was correctly set, but that meant that scriptDirectory then started being
set incorrectly.

Fixes: #21827

@sbc100 sbc100 requested review from kripken and dschuff April 25, 2024 20:27
@sbc100 sbc100 enabled auto-merge (squash) April 25, 2024 20:42
@sbc100 sbc100 disabled auto-merge April 25, 2024 20:42
@sbc100 sbc100 enabled auto-merge (squash) April 25, 2024 20:42
The issue here was the special case for the setting of `scriptDirectory`
under nodejs when `ENVIRONMENT_IS_WORKER`.

Previously this path was not being hit when the main thread was running
in a worker because we were not setting `ENVIRONMENT_IS_WORKER` in this
case.  This was fixed in emscripten-core#21701 and `ENVIRONMENT_IS_WORKER` was
correctly set, but that meant that `scriptDirectory` then started being
set incorrectly.

Fixes: emscripten-core#21827
@sbc100 sbc100 merged commit 7c0d2e7 into emscripten-core:main Apr 25, 2024
29 checks passed
@sbc100 sbc100 deleted the fix_pthread_node_worker branch April 25, 2024 23:08
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.

3.1.58 breaks usage in Node.js worker
2 participants