doc: fix typo in vm.runInNewContext() description · nodejs/node@bb3b4d7

Original file line numberDiff line numberDiff line change

@@ -321,7 +321,7 @@ added: v0.3.1

321321

before terminating execution. If execution is terminated, an [`Error`][]

322322

will be thrown.

323323
324-

The `vm.runInContext()` first contextifies the given `sandbox` object (or

324+

The `vm.runInNewContext()` first contextifies the given `sandbox` object (or

325325

creates a new `sandbox` if passed as `undefined`), compiles the `code`, runs it

326326

within the context of the created context, then returns the result. Running code

327327

does not have access to the local scope.