Skip to content

Commit

Permalink
fix ConfigCmd#clone
Browse files Browse the repository at this point in the history
  • Loading branch information
Blueyescat committed Feb 13, 2024
1 parent aae720a commit 6a4abae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ConfigCmd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ export class ConfigCmd extends BPCmd implements ConfigCmdOptions {

clone(): ConfigCmd {
const clone = Object.assign(Object.create(Object.getPrototypeOf(this)), this)
clone.pusher = { ...this.pusher }
clone.loader = { ...this.loader }
if (this.rawData)
clone.rawData = new Uint8Array(this.rawData)
return clone
Expand Down

0 comments on commit 6a4abae

Please sign in to comment.