Skip to content
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: Use arrow functions for lexical this. #7622

Closed
wants to merge 1 commit into from
Closed

repl: Use arrow functions for lexical this. #7622

wants to merge 1 commit into from

Conversation

lance
Copy link
Member

@lance lance commented Jul 8, 2016

Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

repl

Description of change

Removed code usage such as var self = this; in favor of arrow functions and lexical this.
Also removed usage of var in favor of let and const.

Ref: #7414

Also remove usage of `var` in favor of `let` and `const`.

Ref: #7414
@nodejs-github-bot nodejs-github-bot added the repl Issues and PRs related to the REPL subsystem. label Jul 8, 2016
@@ -96,7 +96,7 @@ class LineParser {
}

parseLine(line) {
var previous = null;
let previous = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're still generally using var over let for performance reasons. I'm not sure how much that should matter in the REPL though.

@lance
Copy link
Member Author

lance commented Sep 21, 2016

This is outdated and probably no longer necessary. Closing.

@lance lance closed this Sep 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
repl Issues and PRs related to the REPL subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants