-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repl: remove magic mode #19187
repl: remove magic mode #19187
Conversation
s/sloopy/sloppy/ in commit message and commit content. |
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.
270eb82
to
0c60f40
Compare
@mscdex thanks! Fixed. |
|
||
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is is
still okay here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I see it: yes. Because the environment variable still exists.
Landed in 4893f70 |
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: nodejs#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>
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: nodejs#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>
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was landed with a mistake.
I will make a PR with a fix (with some other minor link fixes in the docs).
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 (passing in
undefined
or a unknown value will just usethe sloppy mode as before).
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes