mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
11 lines
177 B
JavaScript
11 lines
177 B
JavaScript
// NOT OK
|
|
[1, 2, 3].map(function(x) x * x);
|
|
|
|
// OK
|
|
[1, 2, 3].map(function(x) { return x * x; });
|
|
|
|
// OK
|
|
[1, 2, 3].map((x) => x * x);
|
|
|
|
//semmle-extractor-options: --experimental
|