Skip to content

Commit 3c6a834

Browse files
authored
Removed unnecessary mutation overrides (#93)
Co-authored-by: Yusinto Ngadiman <[email protected]>
1 parent 9357511 commit 3c6a834

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/getFlagsProxy.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,5 @@ function toFlagsProxy(ldClient: LDClient, flags: LDFlagSet, flagKeyMap: LDFlagKe
7070

7171
return ldClient.variation(flagKeyMap[prop], currentValue);
7272
},
73-
74-
// disable all mutation functions to make proxy readonly
75-
setPrototypeOf: () => false,
76-
set: () => false,
77-
defineProperty: () => false,
78-
deleteProperty: () => false,
79-
preventExtensions: () => false,
8073
});
8174
}

0 commit comments

Comments
 (0)