Skip to content

Commit

Permalink
Unconditionally remove deepClone property accessors (#4039)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugome authored and benjamn committed Oct 23, 2018
1 parent f880c2c commit 18dfe93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/apollo-utilities/src/util/cloneDeep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ function cloneDeepHelper<T>(val: T, seen: Map<any, any>): T {
// into a simple value property, though other descriptor properties like
// enumerable, writable, and configurable will be preserved.
desc.value = cloneDeepHelper((val as any)[key], seen);
if (desc.get) delete desc.get;
if (desc.set) delete desc.set;
delete desc.get;
delete desc.set;
Object.defineProperty(copy, key, desc);
};
Object.getOwnPropertyNames(val).forEach(handleKey);
Expand Down

0 comments on commit 18dfe93

Please sign in to comment.