Apply suggestions from code review

Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
Asger F
2021-11-11 10:42:49 +01:00
committed by GitHub
parent 87aa39cef2
commit 7d8284a41c

View File

@@ -223,7 +223,7 @@ module CallGraph {
}
/**
* Gets a step summary that object literals we permit when tracking object literals.
* Gets a step summary for tracking object literals.
*
* To avoid false flow from callbacks passed in via "named parameters", we only track object
* literals out of returns, not into calls.
@@ -236,6 +236,6 @@ module CallGraph {
shouldTrackObjectLiteral(node) and
result = node
or
StepSummary::step(getAnObjectLiteralRef(node), result, [objectLiteralStep()])
StepSummary::step(getAnObjectLiteralRef(node), result, objectLiteralStep())
}
}