doc: update example in repl.md
Checklist
-
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
doc, repl
Delete unused method call.
Refs: https://github.com/nodejs/node/pull/6171
Also, see the implementation of a default function in Node.js v8.