File tree Expand file tree Collapse file tree
javascript/ql/src/semmle/javascript/frameworks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55* Support for many frameworks and libraries has been improved, in particular including the following:
66 - [ a-sync-waterfall] ( https://www.npmjs.com/package/a-sync-waterfall )
77 - [ Electron] ( https://electronjs.org )
8+ - [ Express] ( https://npmjs.org/express )
89 - [ hapi] ( https://hapijs.com/ )
910 - [ js-cookie] ( https://github.com/js-cookie/js-cookie )
1011 - [ React] ( https://reactjs.org/ )
Original file line number Diff line number Diff line change @@ -604,14 +604,15 @@ module Express {
604604 }
605605
606606 /**
607- * An argument passed to the `send` method of an HTTP response object.
607+ * An argument passed to the `send` or `end` method of an HTTP response object.
608608 */
609609 private class ResponseSendArgument extends HTTP:: ResponseSendArgument {
610610 RouteHandler rh ;
611611
612612 ResponseSendArgument ( ) {
613- exists ( MethodCallExpr mce |
614- mce .calls ( rh .getAResponseExpr ( ) , "send" ) and
613+ exists ( MethodCallExpr mce , string name |
614+ mce .calls ( rh .getAResponseExpr ( ) , name ) and
615+ ( name = "send" or name = "end" ) and
615616 this = mce .getArgument ( 0 )
616617 )
617618 }
You can’t perform that action at this time.
0 commit comments