mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
JS: fix mjs check for extensionless files
This commit is contained in:
@@ -166,7 +166,7 @@ class Require extends CallExpr, Import {
|
||||
exists(RequireVariable req |
|
||||
this.getCallee() = req.getAnAccess() and
|
||||
// `mjs` files explicitly disallow `require`
|
||||
getFile().getExtension() != "mjs"
|
||||
not getFile().getExtension() = "mjs"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user