Browse Source

Close #962: Fixed typo in vm.runInNewContext docs.

EDIT: Also added another typo fix to this commit. --isaacs
v0.7.4-release
George Miroshnykov 14 years ago
committed by Ryan Dahl
parent
commit
68c8a69f4c
  1. 4
      doc/api/vm.markdown

4
doc/api/vm.markdown

@ -33,7 +33,7 @@ Example of using `vm.runInThisContext` and `eval` to run the same code:
`eval` does have access to the local scope, so `localVar` is changed.
In case of syntax error in `code`, `vm.runInThisContext` emits the syntax error to stderr
and throws.an exception.
and throws an exception.
### vm.runInNewContext(code, [sandbox], [filename])
@ -62,7 +62,7 @@ Note that running untrusted code is a tricky business requiring great care. To
global variable leakage, `vm.runInNewContext` is quite useful, but safely running untrusted code
requires a separate process.
In case of syntax error in `code`, `vm.runInThisContext` emits the syntax error to stderr
In case of syntax error in `code`, `vm.runInNewContext` emits the syntax error to stderr
and throws an exception.

Loading…
Cancel
Save