deno
39722f19 - fix(node/timers): error when passing id to clearTimeout/clearInterval (#27130)

Commit
1 year ago
fix(node/timers): error when passing id to clearTimeout/clearInterval (#27130) As pointed out in https://github.com/denoland/deno/issues/27126 we used a variable which could potentially be of type `number` instead of the `Timeout` class instance. Ensure that we're always setting `_destroyed` on the class instead instead. Fixes https://github.com/denoland/deno/issues/27126
Parents
Loading