mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
22 lines
412 B
JavaScript
22 lines
412 B
JavaScript
function f(
|
|
x,
|
|
x, // NOT OK
|
|
\u0078 // NOT OK
|
|
) { return; }
|
|
|
|
this.addPropertyListener(prop.name, function(_, _, _, a) {
|
|
proxy.delegate = a.dao;
|
|
});
|
|
|
|
// OK: for strict mode functions, duplicate parameter names are a syntax error
|
|
function f(x, y, x) {
|
|
'use strict';
|
|
}
|
|
|
|
function f(
|
|
x,
|
|
x // OK: empty function
|
|
) { }
|
|
|
|
(a, a) => a + a; // OK: for strict mode functions, duplicate parameter names are a syntax error
|