Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up$http.delete shows warning "avoid using JavaScript unary operator as property name" #11090
Comments
I think the point of this was to avoid problems by using keys in object with names like For anybody willing to give this a try: I marked this as a good first issue but it might be harder than I think because it depends on the logic that exists regarding the warning |
created PR #11092 for this #issue |
Update error-detector to look for `.` prefix, indicating function is associated with an object fix vuejs#11090
Update error-detector to look for . prefix fix vuejs#11090
PR #11409 |
because you can't use delete keyword as variable name.. these are reserve keywords but if you still want to use it then try brackets like this : ['delete'] : value |
Version
2.6.11
Reproduction link
https://codepen.io/frOracle/pen/vYOEEVW
Steps to reproduce
use $http.delete in @click
What is expected?
$http.delete is a function, not unary operator
What is actually happening?
a warning "avoid using JavaScript unary operator as property name"
Related #5464