summaryrefslogtreecommitdiff
path: root/tests/specs/test/non_error_thrown/main.ts
blob: 85dc8d17928fcd0dd17ceda68e8c3af9f72f9c18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Deno.test("foo", () => {
  throw undefined;
});

Deno.test("bar", () => {
  throw null;
});

Deno.test("baz", () => {
  throw 123;
});

Deno.test("qux", () => {
  throw "Hello, world!";
});

Deno.test("quux", () => {
  throw [1, 2, 3];
});

Deno.test("quuz", () => {
  throw { a: "Hello, world!", b: [1, 2, 3] };
});