-
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
Closed
Closed
repl: remove magic mode #19187
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. This was landed with a mistake. |
||
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.