Repository navigation
(experimental) worker isolation #24947
Description
Activity
- addedquestionIssues asking questions about Node.js.Issues asking questions about Node.js.workerIssues and PRs related to the worker_threads module and Worker API.Issues and PRs related to the worker_threads module and Worker API.docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.and removedquestionIssues asking questions about Node.js.Issues asking questions about Node.js.
on Dec 10, 2018 I think at the very least the documentation does not match the actual behaviour here… I think in an earlier version of the workers implementation, we did what the doc states (not allow modifications from worker threads), but it seems that right now we also allow write access?
/cc @nodejs/workers
i prefer the documented behaviour
@addaleax, is this behavior thread-safe ?
@FranckFreiburger We access the environment variables with a mutex, both for reading and for writing, so this should be okay (at least as far as Node is concerned). But like @devsnek, I think I’d prefer the documented behaviour.
Reacted by Benjamin GruenbaumSo this is a regression? (trying to apply labels)
@joyeecheung This behaviour (and the wrong docs) have been present since workers have first been released; I assume these checks went lost during a rebase or similar… so I don’t think it’s a regression, it’s just a bug?
Reacted by Joyee Cheung and Yury- removeddocIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.
on Dec 10, 2018 - addedconfirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.
on Dec 11, 2018 @addaleax I will pick this one.
Should the appropriate solution needs to block the write access toprocess.envand emit a warning / exception ?@sagitsofan I don’t think we want a warning or exception; rather, not installing the setters for
process.envshould be the most JavaScript-y solution here, I think?Reacted by snek@addaleax But if we silently will not install the setters of
process.envthe user will think this operation have done successfully, isn't it? shouldn't a warning is the appropriate way?30 remaining items
- added a commit that references this issue
on Mar 30, 2019 - added 2 commits that reference this issue
on Mar 30, 2019 - added 9 commits that reference this issue
on Apr 5, 2019 - added a commit that references this issue
on Jul 27, 2026
I just wondering if this lack of isolation is expected: