@@ -408,14 +408,15 @@ changes: |
408 | 408 | command before writing to `output`. Defaults to [`util.inspect()`][]. |
409 | 409 | * `completer` {Function} An optional function used for custom Tab auto |
410 | 410 | completion. See [`readline.InterfaceCompleter`][] for an example. |
411 | | - * `replMode` - A flag that specifies whether the default evaluator executes |
412 | | - all JavaScript commands in strict mode, default mode, or a hybrid mode |
413 | | - ("magic" mode.) Acceptable values are: |
| 411 | + * `replMode` {symbol} A flag that specifies whether the default evaluator |
| 412 | + executes all JavaScript commands in strict mode or default (sloppy) mode. |
| 413 | + Acceptable values are: |
414 | 414 | * `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. |
415 | 415 | * `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is |
416 | 416 | equivalent to prefacing every repl statement with `'use strict'`. |
417 | | - * `repl.REPL_MODE_MAGIC` - attempt to evaluates expressions in default |
418 | | - mode. If expressions fail to parse, re-try in strict mode. |
| 417 | + * `repl.REPL_MODE_MAGIC` - This value is **deprecated**, since enhanced |
| 418 | + spec compliance in V8 has rendered magic mode unnecessary. It is now |
| 419 | + equivalent to `repl.REPL_MODE_SLOPPY` (documented above). |
419 | 420 | * `breakEvalOnSigint` - Stop evaluating the current piece of code when |
420 | 421 | `SIGINT` is received, i.e. `Ctrl+C` is pressed. This cannot be used together |
421 | 422 | with a custom `eval` function. Defaults to `false`. |
@@ -461,8 +462,8 @@ environment variables: |
461 | 462 | - `NODE_REPL_HISTORY_SIZE` - Defaults to `1000`. Controls how many lines of |
462 | 463 | history will be persisted if history is available. Must be a positive number. |
463 | 464 | - `NODE_REPL_MODE` - May be any of `sloppy`, `strict`, or `magic`. Defaults |
464 | | - to `magic`, which will automatically run "strict mode only" statements in |
465 | | - strict mode. |
| 465 | + to `sloppy`, which will allow non-strict mode code to be run. `magic` is |
| 466 | + **deprecated** and treated as an alias of `sloppy`. |
466 | 467 |
|
467 | 468 | ### Persistent History |
468 | 469 |
|
|