Skip to content

Commit

Permalink
fix: correct freeze task result (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
griga authored Apr 13, 2024
1 parent a23932f commit 764530b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export default class Task extends EventTarget {
*/
setResult(result: Partial<TaskResult>) {
this.result = { ...this.result, ...result } as TaskResult;
Object.freeze(this.reset);
Object.freeze(this.result);
}

/**
Expand Down

0 comments on commit 764530b

Please sign in to comment.