Skip to content
Myr

Use legacy proxies if Proxy.revocable is not defined. Fixes #435

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Erik J. Sturcke · committed by Erik J. Sturcke · parent f37b6be · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:src/immer.js+4 added-1 removed
17 unmodified lines
1819function verifyMinified() {}2021const configDefaults = {22 useProxies: typeof Proxy !== "undefined" && typeof Reflect !== "undefined",22 useProxies:23 typeof Proxy !== "undefined" &&24 typeof Proxy.revocable !== "undefined" &&25 typeof Reflect !== "undefined",26 autoFreeze:27 typeof process !== "undefined"28 ? process.env.NODE_ENV !== "production"29 : verifyMinified.name === "verifyMinified",
298 unmodified lines