Skip to content

Commit f88cc2a

Browse files
committed
inline promiseStep predicate
1 parent 90a3241 commit f88cc2a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

javascript/ql/src/semmle/javascript/Promises.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ module PromiseTypeTracking {
167167
* Gets the result from a single step through a promise, from `pred` to `result` summarized by `summary`.
168168
* This can be loading a resolved value from a promise, storing a value in a promise, or copying a resolved value from one promise to another.
169169
*/
170+
pragma[inline]
170171
DataFlow::SourceNode promiseStep(DataFlow::SourceNode pred, StepSummary summary) {
171172
exists(PromiseFlowStep step, string field | field = Promises::valueProp() |
172173
summary = LoadStep(field) and
@@ -184,6 +185,7 @@ module PromiseTypeTracking {
184185
* Gets the result from a single step through a promise, from `pred` with tracker `t2` to `result` with tracker `t`.
185186
* This can be loading a resolved value from a promise, storing a value in a promise, or copying a resolved value from one promise to another.
186187
*/
188+
pragma[inline]
187189
DataFlow::SourceNode promiseStep(
188190
DataFlow::SourceNode pred, DataFlow::TypeTracker t, DataFlow::TypeTracker t2
189191
) {

0 commit comments

Comments
 (0)