-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Node: always define __filename
and __dirname
in non-ES6 workers
#18397
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
Closed
kleisauke
wants to merge
8
commits into
emscripten-core:main
from
kleisauke:simplify-script-dir-part1
Closed
Node: always define __filename
and __dirname
in non-ES6 workers
#18397
kleisauke
wants to merge
8
commits into
emscripten-core:main
from
kleisauke:simplify-script-dir-part1
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Is |
@kleisauke Yes, I just opened an issue for that, and disabled the test. (I also can't reproduce it locally.. very odd) |
In favor of `location.href`. This ensures we can remove those `ENVIRONMENT_IS_WORKER` specific guards. Alternative to commit 5decc70 introduced in PR emscripten-core#10343.
This failed with: ``` Aborted(Assertion failed: scriptDirectory (./) should be an absolute path) ```
f247d18
to
b04fd51
Compare
RReverser
reviewed
Dec 22, 2022
RReverser
reviewed
Dec 22, 2022
12a447b
to
69553ef
Compare
This change was generated using: $ ./test/runner other.*code_size* other.*metadce* --rebase
69553ef
to
4b21f48
Compare
Closing in favor of #24023. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In favor of
location.href
. This ensures we can remove thoseENVIRONMENT_IS_WORKER
specific guards.Alternative to commit 5decc70 introduced in PR #10343.
This is a first step to unify/simplify the
_scriptDir
/scriptDirectory
entanglement.Context: #17915.