Thanks to visit codestin.com
Credit goes to github.com

Skip to content

clearTimeout runs here even if not timer has been created yet #224

@mikelangmayr

Description

@mikelangmayr

clearTimeout(timer);

I would suggest to wrap clearTimeout in an if-statement and check if a timer exists yet.
I'm using uvu with quickJS and quickJS throws and error when clearTimeout is run on an empty object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions