Skip to content

Commit f49b36a

Browse files
committed
JS: Change note
1 parent 91b9e95 commit f49b36a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

change-notes/1.25/analysis-javascript.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@
4646

4747
* A library `semmle.javascript.explore.CallGraph` has been added to help write queries for exploring the call graph.
4848
* Added data flow for `Map` and `Set`, and added matching type-tracking steps that can accessed using the `CollectionsTypeTracking` module.
49+
* The data-flow node representing a parameter or destructuring pattern is now always the `ValueNode` corresponding to that AST node. This has a few consequences:
50+
- `Parameter.flow()` now gets the correct data flow node for a parameter. Previously this had a result, but the node was disconnected from the data flow graph.
51+
- `ParameterNode.asExpr()` and `.getAstNode()` now gets the parameter's AST node, whereas previously it had no result.
52+
- `Expr.flow()` now has a more meaningful result for destructuring patterns. Previously this node was disconnected from the data flow graph. Now it represents the values being destructured by the pattern.

0 commit comments

Comments
 (0)