JS: Propagate exceptions from summarized callables by default

This commit is contained in:
Asger F
2024-11-21 10:23:08 +01:00
parent dcdb2e5133
commit 948d21ca07
3 changed files with 43 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ function e1() {
throw source('e1.3'); // Same as e1.2 but without callback parameters
});
} catch (err) {
sink(err); // $ hasValueFlow=e1.2 hasValueFlow=e1.3 MISSING: hasValueFlow=e1.1
sink(err); // $ hasValueFlow=e1.2 hasValueFlow=e1.3 hasValueFlow=e1.1
}
}
@@ -58,7 +58,7 @@ function e4() {
try {
thrower([source("e4.1")]);
} catch (e) {
sink(e); // $ MISSING: hasValueFlow=e4.1
sink(e); // $ hasValueFlow=e4.1
}
try {
thrower(["safe"]);