-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Remove the 'ENVIRONMENT=worker implies ENVIRONMENT=web' assumption #25514
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
Conversation
I suppose there is not much benefit in a program that only runs in webworker and therefore can elide any code related to the browser main thread? My previous assumption is that that is what this test was testing. |
Ohhh. hmmm that is an interesting idea. I suppose there could be such an optimization opportunity, although we would then have to have a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a test for the new error message?
Please add a changelog entry for this breaking change. |
Hmm, actually taking a step back.. would such a That is, would there ever be such a thing as "My output targets Node.js, but only inside a pthread/worker in Node"? Because if not (and it does seem to me that would never be a thing?), then we would not need to disambiguate Maybe that was the original intent of |
…support running inside a Worker.
b1b6f66
to
ed55df2
Compare
Actually yeah, that looks like what the original test intent of Adjusted the PR here to do a better fix for the problem. How does this look now? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change makes sense to me, but it is a breaking change, so please mention it in the changelog.
Hmm I don't think this should break any previous use case, but fix the previous regression? Which breakage are you referring to? |
Will this not start to error on people passing |
The understanding here was that passing At least the test |
Yeah, since it's just from last week maybe it's not worth a mention. But it did make it into a release, so it is noticeable, that's what worries me. But I don't feel strongly. |
Oh I see.. yeah, I'll add a ChangeLog entry. How does that look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, lgtm
ChangeLog.md
Outdated
- For windows users, colored console output for error messages and logging now | ||
requires Windows 10 or above. (#25502) | ||
- Fixed an issue from previous release where "-sENVIRONMENT=worker" was made | ||
erroneously to imply "-sENVIRONMENT=web,worker" (#25514) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the version (4.0.16?)
ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Remove the 'ENVIRONMENT=worker implies ENVIRONMENT=web' assumption. Fixes #25414 (review). Add test to verify the expectation mentioned in that comment.