Skip to content

Commit f3b52ad

Browse files
committed
JS: Add test showing DB-CHECK failure
1 parent 43bc3e5 commit f3b52ad

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[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)
2+
Relevant element: toplevel=16
3+
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"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<template>
2+
<p v-html="input" />
3+
</template>
4+
<script setup lang="ts">
5+
console.log("hello");
6+
</script>
7+
<style></style>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| test.js:1:1:2:0 | <toplevel> |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log("hello");
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import javascript
2+
3+
query predicate toplevels(TopLevel top) { any() }

0 commit comments

Comments
 (0)