From 4893f70d12691208abf8c668d8347240df561f14 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. PR-URL: https://github.com/nodejs/node/pull/19187 Reviewed-By: Colin Ihrig Reviewed-By: Michaël Zasso Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Сковорода Никита Андреевич --- 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 b3b316f1a35e57..02822b5396ac22 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 233977fe09cb9f..9e6d1e8a1ed273 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`.