Skip to content

Commit fc4afe6

Browse files
author
Max Schaefer
committed
JavaScript: Improve qldoc for Parameter to clarify that it also contains catch-clause parameters.
1 parent 96e71c7 commit fc4afe6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

javascript/ql/src/semmle/javascript/Variables.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,14 +680,17 @@ class Parameterized extends @parameterized, Documentable {
680680
}
681681

682682
/**
683-
* A parameter declaration.
683+
* A parameter declaration in a function or catch clause.
684684
*
685685
* Examples:
686686
*
687687
* ```
688688
* function f(x, { y: z }, ...rest) { // `x`, `{ y: z }` and `rest` are parameter declarations
689689
* var [ a, b ] = rest;
690690
* var c;
691+
* try {
692+
* x.m();
693+
* } catch(e) {} // `e` is a parameter declaration
691694
* }
692695
* ```
693696
*/

0 commit comments

Comments
 (0)