Open AlCalzone opened 6 years ago
Future => Feature ?
No, I mean future. Just as a reminder when NodeJS 9 (or rather 10) becomes the norm. At the moment we can't use this, but it could be a very nice feature.
Now that NodeJS 10 is available to the public, we could tackle this similar to how NodeJS 6+ is using VM2.
It is still experimental event in node 13
Still experimental even in nodejs 15
🙈
Besides scripts in VMs, NodeJS 9+ supports modules in VMs: https://nodejs.org/api/vm.html#vm_class_vm_module
This could be used to modularize code in the JS adapter, as some users have already asked for.