Skip to content

Commit 5718fbd

Browse files
committed
JS: update test
1 parent 9b9d712 commit 5718fbd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
| tst.js:2:1:2:1 | x | This parameter has the same name as $@ of the same function. | tst.js:4:1:4:6 | \\u0078 | another parameter |
22
| tst.js:3:1:3:1 | x | This parameter has the same name as $@ of the same function. | tst.js:4:1:4:6 | \\u0078 | another parameter |
3+
| tst.js:17:1:17:1 | x | This parameter has the same name as $@ of the same function. | tst.js:18:1:18:1 | x | another parameter |

javascript/ql/test/query-tests/Declarations/UniqueParameterNames/tst.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function f(
22
x,
33
x, // NOT OK
44
\u0078 // NOT OK
5-
) {}
5+
) { return; }
66

77
this.addPropertyListener(prop.name, function(_, _, _, a) {
88
proxy.delegate = a.dao;
@@ -12,3 +12,8 @@ this.addPropertyListener(prop.name, function(_, _, _, a) {
1212
function f(x, y, x) {
1313
'use strict';
1414
}
15+
16+
function f(
17+
x,
18+
x // OK: empty function
19+
) { }

0 commit comments

Comments
 (0)