Skip to content

bug: Countdown might have a malfunction. #10

Description

@Byloth
const countdown = new Countdown();

countdown.start(10_000)
    .then(() => console.log("Okey Dokey!"))
    .catch(() => console.log("Nooope!"));

// [...]

countdown.stop(new Error());

This caused the program to crash with an uncaught exception.
This shouldn't be the case; the exception should be caught with the .catch statement.

Am I missing something?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions