Files
codeql/javascript/ql/test/library-tests/ModuleImportNodes/CustomImport.ql
Taus 889209719b JS: Overlay annotations for some failing tests
Locally these seem to get rid of the compilation warnings, but of course
CI is the true arbiter here.
2025-11-13 09:46:03 +01:00

13 lines
374 B
Plaintext

import javascript
overlay[local]
class CustomImport extends DataFlow::ModuleImportNode::Range, DataFlow::CallNode {
CustomImport() { this.getCalleeName() = "customImport" }
override string getPath() { result = this.getArgument(0).getStringValue() }
}
from string path, CustomImport imprt
where imprt = DataFlow::moduleImport(path)
select path, imprt.getPath(), imprt