mirror of
https://github.com/denoland/deno.git
synced 2025-02-18 11:28:33 -05:00

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.
4 lines
120 B
TypeScript
4 lines
120 B
TypeScript
Deno.test("no-op", function () {});
|
|
Deno.test("leak interval", function () {
|
|
setInterval(function () {}, 100000);
|
|
});
|