diff options
Diffstat (limited to 'cli/tests/testdata/lib_dom_extras.ts')
-rw-r--r-- | cli/tests/testdata/lib_dom_extras.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cli/tests/testdata/lib_dom_extras.ts b/cli/tests/testdata/lib_dom_extras.ts new file mode 100644 index 000000000..c061bd362 --- /dev/null +++ b/cli/tests/testdata/lib_dom_extras.ts @@ -0,0 +1,17 @@ +const { diagnostics, files } = await Deno.emit("/main.ts", { + compilerOptions: { + target: "esnext", + lib: ["esnext", "dom"], + }, + sources: { + "/main.ts": `const as = new AbortSignal(); + console.log(as.reason); + + const up = new URLPattern("https://example.com/books/:id"); + console.log(up); + `, + }, +}); + +console.log(diagnostics); +console.log(Object.keys(files).sort()); |