diff --git a/doc/api/vm.md b/doc/api/vm.md index dff10b17cf20fd..230054cba98bd2 100644 --- a/doc/api/vm.md +++ b/doc/api/vm.md @@ -117,7 +117,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); }