-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
lib: worker fix workers isolation #25202
Conversation
b43e7dc
to
9eb5137
Compare
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.
That's not good practice to duplicate PRs. Instead of closing #25196 it would be better to rebase it. New PR contains 3 commits including merge commit and you need to delete merge commit and squash everything to a single commit. If you have problems with rebase, other contributors can help you but don't open new PR. I am not sure you need to reopen and rebase previous PR or rebase this one. @lundibundi can you please help us?
9eb5137
to
55e00c6
Compare
To keep things moving, I rebased and force pushed to the branch. (If it helps anywone for the future, I used Before the force push, I ran |
@Trott @tshemsedinov Thanks, i will pay attention for next time. |
Added strict mode inside the worker script. Fixes: nodejs#24947
55e00c6
to
f4642f3
Compare
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 doesn't actually fix the issue, and will probably break people who are expecting to use sloppy mode.
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.
Needs a test.
So i made some more tests and it seems that the strict mode is really not fixing the issue. |
@sagitsofan the setter and deleter need to be conditionally installed depending on if its being run in the main thread or worker thread. Lines 208 to 209 in 77db1e7
|
|
I don’t think this PR will end up being merged, so I’ll close this out. Sorry, and thanks for the PR! |
lib: fix workers isolation
Added strict mode inside the worker script.
Fixes: #24947
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes