Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e2b1c0 commit f15af70Copy full SHA for f15af70
1 file changed
javascript/ql/src/semmle/javascript/frameworks/Vue.qll
@@ -333,13 +333,8 @@ module Vue {
333
}
334
335
private Module getModule() {
336
- exists(HTML::ScriptElement script | script.getFile() = file |
337
- result.getTopLevel() = script.resolveSource()
338
- or
339
- not exists(script.getSourcePath()) and
340
- // XXX is there no way explicit relation between a script tag and its inline script?
341
- result.getTopLevel() instanceof InlineScript and
342
- result.getFile() = script.getFile()
+ exists(HTML::ScriptElement elem | elem.getFile() = file |
+ result.getTopLevel() = elem.getScript()
343
)
344
345
0 commit comments