-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
Conversation
"lineNumber": 1, | ||
"column": 12, | ||
"description": "Use of future reserved word in strict mode" | ||
}; |
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.
Missing linebreak at the end.
@@ -113,7 +113,7 @@ module.exports = { | |||
} | |||
}, | |||
|
|||
isStrictModeReservedWord: function(id) { | |||
isStrictModeReservedWord: function(id, ecmaFeatures) { |
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.
Why pass in the whole object when only one flag is necessary?
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.
You're right of course. I did it mostly for consistency with isKeyword
and to avoid the boolean parameter code smell.
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.
Gotcha, OK by me.
@jrvidal can you add a line break at the end of those files? |
I think it's already done! The diff comments are still visible because adding the |
Got it. LGTM. |
Fix: "await" is a future reserved word (fixes #151)
No description provided.