You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on using the VM module in worker_threads, and ran into an issue... I experimented a while to find a minimal case that would show me what I was missing... https://gist.github.com/d3x0r/c88e4cbadb37a3f4797ca40941ac3438 This is all of the approaches that I tried, and in the end I found
Version
23.5.0
Platform
Subsystem
No response
What steps will reproduce the bug?
I am working on using the VM module in worker_threads, and ran into an issue... I experimented a while to find a minimal case that would show me what I was missing... https://gist.github.com/d3x0r/c88e4cbadb37a3f4797ca40941ac3438 This is all of the approaches that I tried, and in the end I found
I tested all of the components of the above, the
vm.runInContext
works, thewt.Worker
works, but using vm.runInContext in wt.Worker fails...what I'm getting for an error in the application I'm developing this for I'm getting
which is a bad crash, what I get from the above example script is
it's possible there's a syntax error in the example, but I'm not seeing it... the quotes should be nested so it's a simple translation...
How often does it reproduce? Is there a required condition?
Always with the example script. I was also testing with
Script()
instead of VM and it was also failing.What is the expected behavior? Why is that the expected behavior?
vm and worker_thread can each use script code that can use
import
and is a module... but somehow vm IN worker_thread can't?What do you see instead?
(described above)
Additional information
No response
The text was updated successfully, but these errors were encountered: