Skip to content

Commit

Permalink
Use prototype-less object for parentInjections
Browse files Browse the repository at this point in the history
  • Loading branch information
pylixonly authored and yellowsink committed Mar 10, 2024
1 parent dacd2d8 commit e09d4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getPatchFunc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default <CallbackType extends Function>(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);

Expand Down

0 comments on commit e09d4bc

Please sign in to comment.