We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I will use your VM module to make my code more modular.
When i youse mongoose inside the VM i got a "Access Denied" error: VMError: Access denied to require 'module'
// read source from module var module = that.modules[key]; var source = fs.readFileSync(module.path, "utf8"); // vm options var options = { console: 'inherit', sandbox: { log: module.log }, require: true, requireExternal: true, //requireNative: "", requireRoot: "./", useStrict: false }; // create vm & run var vm = new NodeVM(options); var moduleEntry = vm.run(source, module.path); moduleEntry(that.injector); });
The text was updated successfully, but these errors were encountered:
Fix #23, #30
1be6851
Fixed in 2.0.2.
Sorry, something went wrong.
No branches or pull requests
I will use your VM module to make my code more modular.
When i youse mongoose inside the VM i got a "Access Denied" error:
VMError: Access denied to require 'module'
The text was updated successfully, but these errors were encountered: