mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
docs: correct repl eval callback signature
This commit is contained in:
1 parent
07c886f944
commit
b6023905ff
1 file changed
+1
-1
@@ -42,7 +42,7 @@ of command if it's `undefined`. Defaults to `false`.
|
||||
|
||||
You can use your own `eval` function if it has following signature:
|
||||
|
||||
function eval(cmd, callback) {
|
||||
function eval(cmd, context, filename, callback) {
|
||||
callback(null, result);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user