Skip to content

Commit 5595d24

Browse files
committed
fix: avoid stack overflow on child classes that overwrite TimeQueue#push
1 parent 22cfb9e commit 5595d24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class TimeQueue extends EventEmitter {
8888
args.push(undefined);
8989
}
9090
}
91-
this.push(...args, (err: Error | null, results: any) => {
91+
TimeQueue.prototype.push.call(this, ...args, (err: Error | null, results: any) => {
9292
if (err) return reject(err);
9393
resolve(results);
9494
});

0 commit comments

Comments
 (0)