mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 05:04:48 +00:00
Add async tests from prototype
This commit is contained in:
parent
c7ce450ee9
commit
4772c14d12
4 changed files with 33 additions and 0 deletions
9
tests/async_error.ts
Normal file
9
tests/async_error.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
|
||||
console.log("hello");
|
||||
const foo = async () => {
|
||||
console.log("before error");
|
||||
throw Error("error");
|
||||
}
|
||||
|
||||
foo();
|
||||
console.log("world");
|
Loading…
Add table
Add a link
Reference in a new issue