Skip to content

Fix makeRemovedFSAssert() resolved path #24567

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 14, 2025

Conversation

adamscott
Copy link
Contributor

This fixes an issue where path.resolve() resolves using the CWD (which is usually the target project path) instead of the directory of the script itself.

The current behavior causes issues with the Closure compiler, as stubs are erroneously created instead of being skipped in src/shell.js. Closure then complains that variables are declared twice.

The issue was caused by #23348 which changed the logic of the search.

@adamscott adamscott force-pushed the resolve-actual-lib branch from 9fcae01 to 88dd214 Compare June 14, 2025 21:02
@sbc100 sbc100 enabled auto-merge (squash) June 14, 2025 21:22
@sbc100 sbc100 merged commit bf5d63c into emscripten-core:main Jun 14, 2025
30 checks passed
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