code generalization

Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
Mauro Baluda
2022-11-16 12:06:07 +01:00
committed by GitHub
parent 784475dd66
commit 798b03f29d

View File

@@ -235,7 +235,8 @@ module Hapi {
this.getMethodName() = "route" and
handler =
this.getArgument(0)
.(DataFlow::ArrayLiteralNode)
.getALocalSource()
.(DataFlow::ArrayCreationNode)
.getAnElement()
.(DataFlow::ObjectLiteralNode)
.getAPropertySource("handler")