JS: Fix compilation errors in EndpointFeatures library

Use the LabelParameter API instead of manually constructing the edge label.
This commit is contained in:
Aditya Sharad
2021-12-02 16:44:38 -08:00
parent f2800abee4
commit d0840afb80

View File

@@ -247,11 +247,12 @@ private module AccessPaths {
else accessPath = previousAccessPath + " " + paramName
)
or
exists(string callbackName, string index |
exists(string callbackName, int index |
node =
getNamedParameter(previousNode.getASuccessor("param " + index).getMember(callbackName),
paramName) and
index != "-1" and // ignore receiver
getNamedParameter(previousNode
.getASuccessor(API::Label::parameter(index))
.getMember(callbackName), paramName) and
index != -1 and // ignore receiver
if includeStructuralInfo = true
then
accessPath =