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
Is a good approach to create new sandbox for every higher order function?
Is need disable modules like os and fs for safety or user must make decision himself? (set flags in options or generate and pass own context, for example);
If 'dangerous' code not expected (from end user), maybe eval in this case will be better and lighter solution instead vm.Script?
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Now methods of modules can work with with primitives and objects only, bun no with a functions.
Code below throw Error, because
postMessage
no work with function:Describe the solution you'd like
There an idea of implementation with
vm
: https://github.com/Wansmer/noroutine/pull/1But there is open questions:
os
andfs
for safety or user must make decision himself? (set flags in options or generate and pass own context, for example);eval
in this case will be better and lighter solution insteadvm.Script
?The text was updated successfully, but these errors were encountered: