Shared State in Node.js Worker Threads

In Javascript, worker threads don’t share memory by default — but when you need them to, the rules change fast.