mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Update docs/codeql/codeql-language-guides/migrating-javascript-dataflow-queries.rst
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
@@ -207,7 +207,7 @@ There's an important change from the old data flow library when using flow state
|
||||
|
||||
When using ``TaintTracking::GlobalWithState``, all flow states can propagate along taint steps.
|
||||
In the old data flow library, only the ``taint`` flow label could propagate along taint steps.
|
||||
A straight-forward translation of such a query may therefore result in new flow paths being found, which might be unexpected.
|
||||
A straightforward translation of such a query may therefore result in new flow paths being found, which might be unexpected.
|
||||
|
||||
To emulate the old behavior, use ``DataFlow::GlobalWithState`` instead of ``TaintTracking::GlobalWithState``,
|
||||
and manually add taint steps using ``isAdditionalFlowStep``. The predicate ``TaintTracking::defaultTaintStep`` can be used to access to the set of taint steps.
|
||||
|
||||
Reference in New Issue
Block a user