mirror of
https://github.com/github/codeql.git
synced 2026-04-23 07:45:17 +02:00
JS: Add test case
This commit is contained in:
@@ -9,8 +9,11 @@ function e1() {
|
||||
array.forEach(x => {
|
||||
throw source('e1.2');
|
||||
});
|
||||
array.forEach(() => {
|
||||
throw source('e1.3'); // Same as e1.2 but without callback parameters
|
||||
});
|
||||
} catch (err) {
|
||||
sink(err); // $ hasValueFlow=e1.2 MISSING: hasValueFlow=e1.1
|
||||
sink(err); // $ hasValueFlow=e1.2 MISSING: hasValueFlow=e1.1 hasValueFlow=e1.3
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user