We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5539f4 commit 88b7952Copy full SHA for 88b7952
packages/node_modules/proxy-state-tree/src/Proxyfier.ts
@@ -21,7 +21,7 @@ const arrayMutations = new Set([
21
const getValue = (proxyOrValue) =>
22
proxyOrValue && proxyOrValue[IS_PROXY] ? proxyOrValue[VALUE] : proxyOrValue
23
24
-const isClass = (value) => typeof value === 'object' && value !== null && !Array.isArray(value) && value.constructor.name !== 'Object'
+const isClass = (value) => typeof value === 'object' && value !== null && !Array.isArray(value) && value.constructor.name !== 'Object' && Object.isExtensible(value)
25
26
const getArrayMutationRevert = (method: string, target: any[], args: any[]) => {
27
switch (method) {
0 commit comments