From 0c60f409a1f80948919932903cf6c095808fb42f Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Tue, 6 Mar 2018 18:32:16 +0100 Subject: [PATCH] repl: remove magic mode The magic mode is long deprecated and works the same as the sloppy mode. Since the sloppy mode is the default, removing the magic mode should be safe. --- doc/api/deprecations.md | 8 ++++---- doc/api/repl.md | 11 +++++------ lib/repl.js | 1 - test/parallel/test-repl-options.js | 16 +++------------- 4 files changed, 12 insertions(+), 24 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index 4eb90c4c38c2d8..b2ca8308a93f53 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -560,16 +560,16 @@ The `tls.createSecurePair()` API was deprecated in documentation in Node.js ### DEP0065: repl.REPL_MODE_MAGIC and NODE_REPL_MODE=magic -Type: Documentation-only +Type: End-of-Life The `repl` module's `REPL_MODE_MAGIC` constant, used for `replMode` option, has -been deprecated. Its behavior has been functionally identical to that of +been removed. Its behavior has been functionally identical to that of `REPL_MODE_SLOPPY` since Node.js v6.0.0, when V8 5.0 was imported. Please use `REPL_MODE_SLOPPY` instead. The `NODE_REPL_MODE` environment variable is used to set the underlying -`replMode` of an interactive `node` session. Its default value, `magic`, is -similarly deprecated in favor of `sloppy`. +`replMode` of an interactive `node` session. Its value, `magic`, is also +removed. Please use `sloppy` instead. ### DEP0066: outgoingMessage.\_headers, outgoingMessage.\_headerNames diff --git a/doc/api/repl.md b/doc/api/repl.md index c868106f2f946a..00b39d52457e55 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -421,6 +421,9 @@ Returns `true` if `keyword` is a valid keyword, otherwise `false`.