feat: support catching all errors, #220 (#710)

This commit is contained in:
Jun Yang
2024-06-17 22:48:57 +08:00
committed by GitHub
parent 612da52275
commit 3b5627b040
6 changed files with 115 additions and 37 deletions
+6
View File
@@ -0,0 +1,6 @@
export function throwIntendedError () {
throw new Error('intended error')
}
export async function rejectIntendedError () {
throw new Error('intended reject')
}