Skip to content

Commit b7dd455

Browse files
committed
JS: Add test case
1 parent d1c9e47 commit b7dd455

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

javascript/ql/test/library-tests/TripleDot/exceptions.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ function e1() {
99
array.forEach(x => {
1010
throw source('e1.2');
1111
});
12+
array.forEach(() => {
13+
throw source('e1.3'); // Same as e1.2 but without callback parameters
14+
});
1215
} catch (err) {
13-
sink(err); // $ hasValueFlow=e1.2 MISSING: hasValueFlow=e1.1
16+
sink(err); // $ hasValueFlow=e1.2 MISSING: hasValueFlow=e1.1 hasValueFlow=e1.3
1417
}
1518
}
1619

0 commit comments

Comments
 (0)