Skip to content

Commit 0ca9feb

Browse files
committed
JS: Always treat routers as resuming dispatch
1 parent 1b20506 commit 0ca9feb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

javascript/ql/lib/semmle/javascript/Routing.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ module Routing {
144144
// Leaf nodes that aren't functions are assumed to invoke their continuation
145145
not exists(getLastChild()) and
146146
not this instanceof RouteHandler
147+
or
148+
this instanceof MkRouter
147149
}
148150

149151
/** Gets the parent of this node, provided that this node may invoke its continuation. */

0 commit comments

Comments
 (0)