Skip to content

Commit 5f4016b

Browse files
committed
JS: Cache Import.getImportedModule
1 parent c5f2c04 commit 5f4016b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

javascript/ql/src/semmle/javascript/Modules.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ abstract class Import extends ASTNode {
236236
* behavior of Node.js imports, which prefer core modules such as `fs` over any
237237
* source module of the same name.
238238
*/
239+
cached
239240
Module getImportedModule() {
240241
if exists(resolveExternsImport())
241242
then result = resolveExternsImport()

0 commit comments

Comments
 (0)