mirror of
https://github.com/denoland/deno.git
synced 2024-12-15 03:48:02 -05:00
53088e16de
This commit improves the error messages for the `deno test` async op sanitizer. It does this in two ways: - it uses handwritten error messages for each op that could be leaking - it includes traces showing where each op was started This "async op tracing" functionality is a new feature in deno_core. It likely has a significant performance impact, which is why it is only enabled in tests.
10 lines
203 B
TypeScript
10 lines
203 B
TypeScript
// https://github.com/denoland/deno/issues/8965
|
|
|
|
function test() {
|
|
setTimeout(() => {}, 10000);
|
|
setTimeout(() => {}, 10001);
|
|
}
|
|
|
|
Deno.test("test 1", () => test());
|
|
|
|
Deno.test("test 2", () => test());
|