Skip to content

Commit

Permalink
fix(core): updating deepCopy get prototype of object
Browse files Browse the repository at this point in the history
  • Loading branch information
cstuncsik committed Nov 2, 2022
1 parent 3ec7f7b commit 9ec7dc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/workflow/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const deepCopy = <T extends ((object | Date) & { toJSON?: () => string })
return clone as T;
}
// Object
const clone = Object.create(Object.getPrototypeOf(source));
const clone = Object.create(Object.getPrototypeOf({}));
hash.set(source, clone);
for (const i in source) {
if (hasOwnProp(i)) {
Expand Down

0 comments on commit 9ec7dc9

Please sign in to comment.