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

chore: comment and order keywords in list alphabetically #7037

Merged
merged 2 commits into from Nov 14, 2022

Conversation

s-rigaud
Copy link
Contributor

@s-rigaud s-rigaud commented Nov 6, 2022

typeof is actually a prohibited keyword. There was a mistake in the comment. I just fix the comment and ordered the keywords so it's easier to read and identify this kind of error in the future.

@posva posva added the 🧹 p1-chore Priority 1: this doesn't change code behavior. label Nov 7, 2022
@posva posva changed the title Fix small mistake in comment and organize keywords chore: comment and order keywords in list alphabetically Nov 7, 2022
@yyx990803
Copy link
Member

Actually, the comment is right and the implementation is wrong. typeof should be allowed in expressions.

@yyx990803 yyx990803 merged commit 3783866 into vuejs:main Nov 14, 2022
'do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' +
'super,throw,while,yield,delete,export,import,return,switch,default,' +
'extends,finally,continue,debugger,function,arguments,typeof,void'
'arguments,await,break,case,catch,class,const,continue,debugger,default,' +
Copy link
Member

@sxzz sxzz Nov 14, 2022

Choose a reason for hiding this comment

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

Can we change here to [...].join(',') for better readability?

@yyx990803

chrislone pushed a commit to chrislone/core that referenced this pull request Feb 4, 2023
zhangzhonghe pushed a commit to zhangzhonghe/core that referenced this pull request Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧹 p1-chore Priority 1: this doesn't change code behavior.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants