We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82ad79f commit 9825136Copy full SHA for 9825136
javascript/ql/lib/semmle/javascript/dataflow/Nodes.qll
@@ -741,7 +741,10 @@ module ModuleImportNode {
741
* This predicate can be extended by subclassing `ModuleImportNode::Range`.
742
*/
743
cached
744
-ModuleImportNode moduleImport(string path) { Stages::Imports::ref() and result.getPath() = path }
+ModuleImportNode moduleImport(string path) {
745
+ // NB. internal modules may be imported with a "node:" prefix
746
+ Stages::Imports::ref() and result.getPath() = ["node:" + path, path]
747
+}
748
749
/**
750
* Gets a (default) import of the given dependency `dep`, such as
0 commit comments