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

Fix: "await" is a future reserved word (fixes #151) #152

Merged
merged 1 commit into from
Jun 26, 2015
Merged

Fix: "await" is a future reserved word (fixes #151) #152

merged 1 commit into from
Jun 26, 2015

Conversation

jrvidal
Copy link
Contributor

@jrvidal jrvidal commented Jun 20, 2015

No description provided.

"lineNumber": 1,
"column": 12,
"description": "Use of future reserved word in strict mode"
};
Copy link
Member

Choose a reason for hiding this comment

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

Missing linebreak at the end.

@@ -113,7 +113,7 @@ module.exports = {
}
},

isStrictModeReservedWord: function(id) {
isStrictModeReservedWord: function(id, ecmaFeatures) {
Copy link
Member

Choose a reason for hiding this comment

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

Why pass in the whole object when only one flag is necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right of course. I did it mostly for consistency with isKeyword and to avoid the boolean parameter code smell.

Copy link
Member

Choose a reason for hiding this comment

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

Gotcha, OK by me.

@nzakas
Copy link
Member

nzakas commented Jun 25, 2015

@jrvidal can you add a line break at the end of those files?

@jrvidal
Copy link
Contributor Author

jrvidal commented Jun 25, 2015

I think it's already done! The diff comments are still visible because adding the \n did not invalidate them.

@nzakas
Copy link
Member

nzakas commented Jun 26, 2015

Got it. LGTM.

nzakas added a commit that referenced this pull request Jun 26, 2015
Fix: "await" is a future reserved word (fixes #151)
@nzakas nzakas merged commit 1b1967e into eslint:master Jun 26, 2015
@jrvidal jrvidal deleted the await-keyword-151 branch July 1, 2015 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants