Skip to content

timers: fix multipleResolves in promisified timeouts/immediates

After successful timer finish the abort event callback would still reject (already resolved promise) upon calling abortController.abort().

Signed-off-by: Denys Otrishko shishugi@gmail.com

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

/cc @jasnell @nodejs/timers

Merge request reports

Loading