lukeed/uvu

clearTimeout runs here even if not timer has been created yet

mikelangmayr opened this issue · 0 comments

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.