Skip to content

Commit

Permalink
Merge pull request #457 from XmiliaH/fix-456
Browse files Browse the repository at this point in the history
Allow false for require option
  • Loading branch information
XmiliaH authored Aug 28, 2022
2 parents 6fcb707 + b8314b0 commit 6b0b71a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export interface NodeVMOptions extends VMOptions {
/** `inherit` to enable console, `redirect` to redirect to events, `off` to disable console (default: `inherit`). */
console?: "inherit" | "redirect" | "off";
/** `true` or an object to enable `require` options (default: `false`). */
require?: true | VMRequire;
require?: boolean | VMRequire;
/** **WARNING**: This should be disabled. It allows to create a NodeVM form within the sandbox which could return any host module.
* `true` to enable VMs nesting (default: `false`). */
nesting?: boolean;
Expand Down

0 comments on commit 6b0b71a

Please sign in to comment.