mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
JS: fix an off-by-one error in the AngularJS expression AST
This commit is contained in:
@@ -592,7 +592,7 @@ class NgSingleFilter extends TNgSingleFilter, NgAstNode {
|
||||
* Gets the `i`th argument expression of this filter call.
|
||||
*/
|
||||
NgExpr getArgument(int i) {
|
||||
result = getChild(1).(NgFilterArgument).getElement(i)
|
||||
result = getChild(0).(NgFilterArgument).getElement(i)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user