mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
JS: use HTML::ScriptElement::getScript in Vue
This commit is contained in:
@@ -333,13 +333,8 @@ module Vue {
|
||||
}
|
||||
|
||||
private Module getModule() {
|
||||
exists(HTML::ScriptElement script | script.getFile() = file |
|
||||
result.getTopLevel() = script.resolveSource()
|
||||
or
|
||||
not exists(script.getSourcePath()) and
|
||||
// XXX is there no way explicit relation between a script tag and its inline script?
|
||||
result.getTopLevel() instanceof InlineScript and
|
||||
result.getFile() = script.getFile()
|
||||
exists(HTML::ScriptElement elem | elem.getFile() = file |
|
||||
result.getTopLevel() = elem.getScript()
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user