summaryrefslogtreecommitdiff
path: root/doc/api/repl.md
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-03-06 18:32:16 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2018-03-11 02:43:27 +0100
commit4893f70d12691208abf8c668d8347240df561f14 (patch)
tree72ac3336742e856c7bc803e8261840a2a0382cbe /doc/api/repl.md
parent8181c607e5cd96afc041636ceb37ff6758e8d470 (diff)
downloadandroid-node-v8-4893f70d12691208abf8c668d8347240df561f14.tar.gz
android-node-v8-4893f70d12691208abf8c668d8347240df561f14.tar.bz2
android-node-v8-4893f70d12691208abf8c668d8347240df561f14.zip
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. PR-URL: https://github.com/nodejs/node/pull/19187 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Diffstat (limited to 'doc/api/repl.md')
-rw-r--r--doc/api/repl.md11
1 files changed, 5 insertions, 6 deletions
diff --git a/doc/api/repl.md b/doc/api/repl.md
index 233977fe09..9e6d1e8a1e 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`.
<!-- YAML
added: v0.1.91
changes:
+ - version: REPLACEME
+ pr-url: https://github.com/nodejs/node/pull/REPLACEME
+ description: The `REPL_MAGIC_MODE` replMode was removed.
- version: v5.8.0
pr-url: https://github.com/nodejs/node/pull/5388
description: The `options` parameter is optional now.
@@ -462,9 +465,6 @@ changes:
* `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode.
* `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is
equivalent to prefacing every repl statement with `'use strict'`.
- * `repl.REPL_MODE_MAGIC` - This value is **deprecated**, since enhanced
- spec compliance in V8 has rendered magic mode unnecessary. It is now
- equivalent to `repl.REPL_MODE_SLOPPY` (documented above).
* `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`.
@@ -512,9 +512,8 @@ environment variables:
REPL history. Whitespace will be trimmed from the value.
- `NODE_REPL_HISTORY_SIZE` - Defaults to `1000`. Controls how many lines of
history will be persisted if history is available. Must be a positive number.
- - `NODE_REPL_MODE` - May be any of `sloppy`, `strict`, or `magic`. Defaults
- to `sloppy`, which will allow non-strict mode code to be run. `magic` is
- **deprecated** and treated as an alias of `sloppy`.
+ - `NODE_REPL_MODE` - May be either `sloppy` or `strict`. Defaults
+ to `sloppy`, which will allow non-strict mode code to be run.
### Persistent History