mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
JS: Add test showing DB-CHECK failure
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[VALUE_NOT_IN_TYPE] predicate toplevel_parent_xml_node(@toplevel toplevel, @xml_node_with_code xmlnode): Value 16 of field toplevel is not in type @toplevel. Appears in tuple (16,-16777216)
|
||||
Relevant element: toplevel=16
|
||||
Full ID for 16: @"script;(0),4,25". The ID may expand to @"script;{@"/Users/asger/git/code/ql/javascript/ql/test/library-tests/TypeScript/RegressionTests/EmbeddedTypeScriptNoTSConfig/embedded-typescript.vue;sourcefile"},4,25"
|
||||
@@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<p v-html="input" />
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
console.log("hello");
|
||||
</script>
|
||||
<style></style>
|
||||
@@ -0,0 +1 @@
|
||||
| test.js:1:1:2:0 | <toplevel> |
|
||||
@@ -0,0 +1 @@
|
||||
console.log("hello");
|
||||
@@ -0,0 +1,3 @@
|
||||
import javascript
|
||||
|
||||
query predicate toplevels(TopLevel top) { any() }
|
||||
Reference in New Issue
Block a user