diff --git a/src/getPatchFunc.ts b/src/getPatchFunc.ts index dc89556..ae0c9e9 100644 --- a/src/getPatchFunc.ts +++ b/src/getPatchFunc.ts @@ -19,7 +19,7 @@ export default (patchType: PatchType) => `${funcName} is not a function in ${funcParent.constructor.name}` ); - if (!patchedObjects.has(funcParent)) patchedObjects.set(funcParent, {}); + if (!patchedObjects.has(funcParent)) patchedObjects.set(funcParent, Object.create(null)); const parentInjections = patchedObjects.get(funcParent);