feat:TimerId start with 1

This commit is contained in:
pengfeizhou 2021-02-26 10:33:27 +08:00 committed by osborn
parent 8d9052d74c
commit a997ac7646
2 changed files with 2 additions and 2 deletions

View File

@ -278,7 +278,7 @@ export function jsObtainEntry(contextId: string) {
} }
const global = Function('return this')() const global = Function('return this')()
let __timerId__ = 0 let __timerId__ = 1
const timerInfos: Map<number, { callback: () => void, context?: Context }> = new Map const timerInfos: Map<number, { callback: () => void, context?: Context }> = new Map

View File

@ -316,7 +316,7 @@ export function jsObtainEntry(contextId: string) {
} }
const global = Function('return this')() const global = Function('return this')()
let __timerId__ = 0 let __timerId__ = 1
const timerInfos: Map<number, { callback: () => void, context?: Context }> = new Map const timerInfos: Map<number, { callback: () => void, context?: Context }> = new Map