Skip to content

Commit

Permalink
add missing default value for queueTask
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed May 9, 2023
1 parent fcddb49 commit 28ceff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ class Environment extends Base {
* @param {(...args: any[]) => void | Promise<void>} task
* @param {{ once?: string, startQueue?: boolean }} [options]
*/
queueTask(priority, task, options) {
queueTask(priority, task, options = {}) {
return new Promise((resolve, reject) => {
this.runLoop.add(
priority,
Expand Down

0 comments on commit 28ceff0

Please sign in to comment.