mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
JS: update queries and tests for improved type inference
This commit is contained in:
@@ -7,7 +7,7 @@ function getAttacher1 (app) {
|
||||
|
||||
var app = express();
|
||||
getAttacher1(app);
|
||||
|
||||
confuse(getAttacher2); // disable the type inference
|
||||
|
||||
function getAttacher2 (app) {
|
||||
return function(h) {
|
||||
@@ -17,3 +17,4 @@ function getAttacher2 (app) {
|
||||
|
||||
var app = express();
|
||||
getAttacher2(app)(function(req, res){});
|
||||
confuse(getAttacher2); // disable the type inference
|
||||
|
||||
@@ -58,3 +58,4 @@ function wrap(f){
|
||||
}
|
||||
}
|
||||
app[route3.method](route3.url, wrap(route3.handler));
|
||||
confuse(wrap); // confuse the type inference
|
||||
|
||||
Reference in New Issue
Block a user