mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
JS: Avoid materializing HTML::Element.getFile()
This commit is contained in:
@@ -352,7 +352,8 @@ module Vue {
|
||||
}
|
||||
|
||||
private Module getModule() {
|
||||
exists(HTML::ScriptElement elem | elem.getFile() = file |
|
||||
exists(HTML::ScriptElement elem |
|
||||
xmlElements(elem, _, _, _, file) and // Avoid materializing all of Locatable.getFile()
|
||||
result.getTopLevel() = elem.getScript()
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user