diff --git a/doc/api/vm.md b/doc/api/vm.md index cd47bc04ea85f6..592c78148e7040 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -108,7 +108,7 @@ const sandbox = { const script = new vm.Script('count += 1; name = "kitty";'); -const context = new vm.createContext(sandbox); +const context = vm.createContext(sandbox); for (let i = 0; i < 10; ++i) { script.runInContext(context); }