I think my question is why do this if JavaScript is a single threaded language anyway? If you’ve got concurrent processes running in JavaScript, they’re not actually “concurrent”, right? If you’re stuck using JS aren’t you fundamentally better off separating them into two distinct process packages, and having them communicate via some IPC system?
Furthermore; why not just *avoid doing concurrency intensive work in JS* in the first place? Isn’t that why people learned Go?
Seems like a solution looking for a problem kind of, but that’s my low effort critique so maybe I should stuff it.