diff --git a/src/index.ts b/src/index.ts index 4b02791..5830808 100644 --- a/src/index.ts +++ b/src/index.ts @@ -88,7 +88,7 @@ class TimeQueue extends EventEmitter { args.push(undefined); } } - this.push(...args, (err: Error | null, results: any) => { + TimeQueue.prototype.push.call(this, ...args, (err: Error | null, results: any) => { if (err) return reject(err); resolve(results); });