Skip to content

JS: make more use of getUnderlyingReference and getUnderlyingValue #424

Merged
semmle-qlci merged 4 commits into
masterfrom
unknown repository
Nov 8, 2018
Merged

JS: make more use of getUnderlyingReference and getUnderlyingValue #424
semmle-qlci merged 4 commits into
masterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Nov 7, 2018

This is the continuation of #345, I have made use of getUnderlyingReference and getUnderlyingValue in all the places I found it to be reasonable. This may spark some discussion about more/fewer uses.

For reference, the remaining files with calls to stripParens are:

$ ag '\.stripParens' -lc
LanguageFeatures/DeleteVar.ql:1
Statements/SuspiciousUnusedLoopIterationVariable.ql:1
Statements/UselessConditional.ql:2
Statements/ReturnAssignsLocal.ql:1
semmle/javascript/DefUse.qll:4
semmle/javascript/Expr.qll:6
semmle/javascript/TypeScript.qll:1
Metrics/ES20xxFeatures.qll:1
Expressions/BadParityCheck.ql:1
Expressions/ExprHasNoEffect.ql:3

I will do a new performance test, but one from a few weeks ago seemed fine.

@ghost ghost added the JS label Nov 7, 2018
@ghost ghost self-requested a review as a code owner November 7, 2018 08:47
Copy link
Copy Markdown
Contributor

@asger-semmle asger-semmle left a comment

Choose a reason for hiding this comment

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

Everything lgtm 👍

@semmle-qlci semmle-qlci merged commit 29cabc0 into github:master Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants