-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: print unhandled errors to tets results tab (#370)
* fix: print unhandled errors to tets results tab * chore: cleanup * fix: stop debugging if running other profiles * chore: update types/node and typecheck * fix: correctly watch folders, and add more debug statements * chore: files relative * chore: cleanup
- Loading branch information
1 parent
2d34afc
commit 7c036fd
Showing
11 changed files
with
247 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
if (!Promise.withResolvers) { | ||
Promise.withResolvers = function withResolvers<T>() { | ||
let a: (v: T | PromiseLike<T>) => void | ||
let b: (r?: any) => void | ||
const c = new this<T>((resolve, reject) => { | ||
a = resolve | ||
b = reject | ||
}) | ||
return { resolve: a!, reject: b!, promise: c } | ||
} | ||
} |
Oops, something went wrong.