Skip to content
Myr

avoid creating null keys in proxies

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

authored by Andrey Boldyrev · committed by Andrey Boldyrev · parent ffd8769 · Browse files · 1 file+2 added−2 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+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:src/proxy.js+2 added-2 removed
257 unmodified lines
258 },259 keys: state => () => latest(state).keys(),260 values: iterateMapValues,261 entries: iterateMapValues,262 [hasSymbol && Symbol.iterator]: iterateMapValues262 [hasSymbol ? Symbol.iterator : "@@iterator"]: iterateMapValues263})264265const iterateSetValues = makeIterateSetValues(createProxy)266/**
29 unmodified lines
296 },297 keys: iterateSetValues,298 values: iterateSetValues,299 entries: iterateSetValues,300 [hasSymbol && Symbol.iterator]: iterateSetValues300 [hasSymbol ? Symbol.iterator : "@@iterator"]: iterateSetValues301})302303/**304 * Helpers
63 unmodified lines