Skip to content

Commit

Permalink
fix(ios): start initial timer id from one
Browse files Browse the repository at this point in the history
  • Loading branch information
janvennemann authored and sgtcoolguy committed Jun 4, 2020
1 parent 5ab9a5a commit bbba4cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ - (instancetype)initInContext:(JSContext *)context
return nil;
}

self.nextTimerIdentifier = 0;
self.nextTimerIdentifier = 1;
self.timers = [NSMapTable strongToWeakObjectsMapTable];

NSUInteger (^setInterval)(JSValue *, double) = ^(JSValue *callback, double interval) {
Expand Down

0 comments on commit bbba4cd

Please sign in to comment.