diff options
author | Dan Kohn <dan@dankohn.com> | 2013-02-12 15:04:23 -0500 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2013-02-13 16:40:27 +0100 |
commit | 2e1ebbf2c54585e67ec71d73b8a7f94214077368 (patch) | |
tree | ecebd0be1b9580f3eb09a61239b48b4136cce75b /doc/api/repl.markdown | |
parent | 82ad5fbe9aa862f0500b63ea2d739991ede74f48 (diff) | |
download | node-2e1ebbf2c54585e67ec71d73b8a7f94214077368.tar.gz |
doc: add prompt to fix repl_test.js example
Running repl.start without the prompt set produces this error:
repl.js:95
throw new Error('An options Object, or a prompt String are required');
^
Error: An options Object, or a prompt String are required
at new REPLServer (repl.js:95:11)
at Object.exports.start (repl.js:321:14)
at Object.<anonymous> (/Users/dan/Dropbox/Documents/dev/nextgen/repl_test.js:5:6)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Diffstat (limited to 'doc/api/repl.markdown')
-rw-r--r-- | doc/api/repl.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/repl.markdown b/doc/api/repl.markdown index 2104136bf..557ae170a 100644 --- a/doc/api/repl.markdown +++ b/doc/api/repl.markdown @@ -159,7 +159,7 @@ associated with each `REPLServer`. For example: var repl = require("repl"), msg = "message"; - repl.start().context.m = msg; + repl.start("> ").context.m = msg; Things in the `context` object appear as local within the REPL: |