1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 18:19:08 -05:00
denoland-deno/cli/tests/testdata/test/ops_sanitizer_multiple_timeout_tests.ts
Andreu Botella 33da15ae5a
refactor(timers): refactor timers to use one async op per timer (#12862)
This change also makes the timers implementation closer to the spec, and
sets up the stage to implement AbortSignal.timeout() (whatwg/dom#1032).

Fixes #8965
Fixes #10974
Fixes #11398
2021-12-07 13:39:58 +01:00

10 lines
187 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);