doc: fix a function name in repl.md

`eval` => `myEval` to not shadow the global `eval`

PR-URL: https://github.com/nodejs/node/pull/10244
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Vse Mozhet Byt authored and Evan Lucas committed 2017-01-04 10:44:06 -06:00
1 parent b8e2711ddd
commit f281b190d5
1 file changed
+1 -1
+1 -1
View File
@@ -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);