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
When using NodeVM in combination with vm.call(methodname, params), a "while(true)" statement still blocks execution. Am i doing something wrong or is this a bug?
My code:
// sandbox propertiesvaroptions={console: 'inherit',sandbox: {"var1": var1,"var2": var2},require: true,requireExternal: false,requireNative: [],timeout: 100// see my other issue, since this is not working};varvm=newNodeVM(options);varscript=vm.run("module.exports = { onLoad: function(){ while(true);}}");vm.call(script.onLoad);// this blocks execution
The text was updated successfully, but these errors were encountered:
Unfortunately NodeVM can't be run with timeout so while can block the process. This is a limitation of a Node.js itself and there is nothing I can do about it.
When using NodeVM in combination with vm.call(methodname, params), a "while(true)" statement still blocks execution. Am i doing something wrong or is this a bug?
My code:
The text was updated successfully, but these errors were encountered: