-
-
Notifications
You must be signed in to change notification settings - Fork 191
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
10$: warn on 'typeof x === undefined' #1207
Comments
Hi brother. Can I implement the changes required in this fix? Also, we have to implement the changes in C++ right? |
@Master-Helix Sure! Here's our contributor guide: https://quick-lint-js.com/contribute/ Let me know if you need more assistance. |
We have to make the changes everywhere in the repo for typeof x === undefined right? |
@Master-Helix What do you mean by 'everywhere in the repo'? For this task you definitely won't need to change (or even look at) most source files in quick-lint-js. |
You have tagged it under the C++ domain but it is related to JS files. And I can see the changes required are already there |
quick-lint-js is a JavaScript checker/linter. quick-lint-js is written in C++. For this task you will be modifying C++ code.
I don't know what changes you're referring to. I pasted |
I understood. Continuing on the fix |
I can see the red warning under typeof. |
No brother. I am running this directly from your master branch without making any changes. Can you confirm it ? |
I guess the issue is with the font on the playground then ? The syntax should work irrespective of the font used |
@Master-Helix On the demo, can you run |
Sure. |
I would be interested in attempting to resolve this issue unless either of @Master-Helix or @vegerot wanted to? (I am only asking because I saw the unassignment) |
@CoderMuffin Sure, you can tackle this task. |
@strager Not sure if you get notified so I just wanted to let you know that I have submitted a pull request with the first draft for these changes :) |
typeof x === undefined
is always false.typeof
returns a string. The programmer meanttypeof x === "undefined"
instead.The text was updated successfully, but these errors were encountered: