Skip to content

Commit

Permalink
doc: fix a function name in repl.md
Browse files Browse the repository at this point in the history
`eval` => `myEval` to not shadow the global `eval`

PR-URL: #10244
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
vsemozhetbyt authored and addaleax committed Dec 25, 2016
1 parent 4936c41 commit 224cbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/repl.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ multi-line input, the eval function can return an instance of `repl.Recoverable`
to the provided callback function:

```js
function eval(cmd, context, filename, callback) {
function myEval(cmd, context, filename, callback) {
let result;
try {
result = vm.runInThisContext(cmd);
Expand Down

0 comments on commit 224cbf8

Please sign in to comment.