Skip to content

Commit

Permalink
ref: add default for abort resolution handler
Browse files Browse the repository at this point in the history
  • Loading branch information
joshLong145 committed Jan 1, 2025
1 parent 29c2a51 commit ad9534d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WorkerHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function WorkerHandler(script, _options) {
this.workerOpts = options.workerOpts;
this.workerThreadOpts = options.workerThreadOpts
this.workerTerminateTimeout = options.workerTerminateTimeout;
this.onAbortResolution = options.onAbortResolution;
this.onAbortResolution = options.onAbortResolution || (() => null);

// The ready message is only sent if the worker.add method is called (And the default script is not used)
if (!script) {
Expand Down

0 comments on commit ad9534d

Please sign in to comment.