When use vm2 in worker_threads, is it possible to share a NodeVM instance between workers?
问题 I am using worker_threads and vm2 to implement a serverless-like thing, but I cannot get a NodeVM instance in the main thread and then pass through workData(because of worker_threads 's limitation), so I can only new NodeVM in a worker thread per request, inside which I cannot reuse a vm instance and the cost hurts. The new NodeVM() takes 200 ~ 450 ms to finish, so I wish to pre-init a reusable instance. const w = new Worker(` (async () => { const { workerData, parentPort } = require('worker