mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
JS: Cache Import.getImportedModule
This commit is contained in:
@@ -236,6 +236,7 @@ abstract class Import extends ASTNode {
|
||||
* behavior of Node.js imports, which prefer core modules such as `fs` over any
|
||||
* source module of the same name.
|
||||
*/
|
||||
cached
|
||||
Module getImportedModule() {
|
||||
if exists(resolveExternsImport())
|
||||
then result = resolveExternsImport()
|
||||
|
||||
Reference in New Issue
Block a user