summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/lib_dom_extras.ts
blob: c061bd36208ea2e86e3a04abdbf54bd606732ed5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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());