From d73364fb2d00528a45241c5fd16838aec1bb8f9c Mon Sep 17 00:00:00 2001 From: Prince J Wesley Date: Sat, 23 Jul 2016 12:10:45 +0530 Subject: [PATCH 1/2] doc: align breakEvalOnSigint - repl option --- doc/api/repl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/repl.md b/doc/api/repl.md index 124106e642ee62..3af1278d5e466b 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -392,7 +392,7 @@ added: v0.1.91 equivalent to prefacing every repl statement with `'use strict'`. * `repl.REPL_MODE_MAGIC` - attempt to evaluates expressions in default mode. If expressions fail to parse, re-try in strict mode. - * `breakEvalOnSigint` - Stop evaluating the current piece of code when + * `breakEvalOnSigint` - Stop evaluating the current piece of code when `SIGINT` is received, i.e. `Ctrl+C` is pressed. This cannot be used together with a custom `eval` function. Defaults to `false`. From 1590efac8cfae38d4406b298427e48d6223031d9 Mon Sep 17 00:00:00 2001 From: Prince J Wesley Date: Sat, 23 Jul 2016 12:28:55 +0530 Subject: [PATCH 2/2] Align subsequent lines --- doc/api/repl.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/repl.md b/doc/api/repl.md index 3af1278d5e466b..5499f4dacb5462 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -393,8 +393,8 @@ added: v0.1.91 * `repl.REPL_MODE_MAGIC` - attempt to evaluates expressions in default mode. If expressions fail to parse, re-try in strict mode. * `breakEvalOnSigint` - Stop evaluating the current piece of code when - `SIGINT` is received, i.e. `Ctrl+C` is pressed. This cannot be used together - with a custom `eval` function. Defaults to `false`. + `SIGINT` is received, i.e. `Ctrl+C` is pressed. This cannot be used together + with a custom `eval` function. Defaults to `false`. The `repl.start()` method creates and starts a `repl.REPLServer` instance.