Skip to content

Commit 12cc228

Browse files
committed
JS: Update getFallbackTypeAnnotation
1 parent b06cd6d commit 12cc228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/semmle/javascript/dataflow/DataFlow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ module DataFlow {
229229
*/
230230
private JSDocTypeExpr getFallbackTypeAnnotation() {
231231
exists(BindingPattern pattern |
232-
this = lvalueNode(pattern) and
232+
this = valueNode(pattern) and
233233
not ast_node_type(pattern, _) and
234234
result = pattern.getTypeAnnotation()
235235
)

0 commit comments

Comments
 (0)