X Tutup
The Wayback Machine - https://web.archive.org/web/20211025233020/https://github.com/github/codeql/pull/6873
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

JS: add explicit this to all member calls #6873

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

@erik-krogh
Copy link
Contributor

@erik-krogh erik-krogh commented Oct 13, 2021

Quoting the style guide:

"14. Always qualify calls to predicates of the same class with this."


No change note required -- this does not affect behaviour.

This PR was written by a program. I just had to revert some files that are identical with other languages.

Let me know if you don't think we should do this. I'm not completely sure myself.

@github-actions github-actions bot added the JS label Oct 13, 2021
@erik-krogh erik-krogh force-pushed the explicit-this branch 3 times, most recently from 13055c0 to cf17018 Oct 13, 2021
@erik-krogh erik-krogh marked this pull request as ready for review Oct 14, 2021
@erik-krogh erik-krogh requested a review from as a code owner Oct 14, 2021
@hvitved
Copy link
Contributor

@hvitved hvitved commented Oct 14, 2021

Could we have this for Ruby and C# as well? :-)

@erik-krogh erik-krogh force-pushed the explicit-this branch 2 times, most recently from c8e1f8e to 210eac0 Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
X Tutup