JS: Add test showing DB-CHECK failure

This commit is contained in:
Asger F
2025-01-21 14:02:17 +01:00
parent 43bc3e5d99
commit f3b52adde6
5 changed files with 15 additions and 0 deletions

View File

@@ -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"

View File

@@ -0,0 +1,7 @@
<template>
<p v-html="input" />
</template>
<script setup lang="ts">
console.log("hello");
</script>
<style></style>

View File

@@ -0,0 +1 @@
| test.js:1:1:2:0 | <toplevel> |

View File

@@ -0,0 +1,3 @@
import javascript
query predicate toplevels(TopLevel top) { any() }