@mmstack/primitives 20.14.0 → 20.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4649,8 +4649,11 @@ function toStore(source, { injector, vivify = false, noUnionLeaves = false, ...r
4649
4649
  return idx >= 0 && idx < v.length;
4650
4650
  }
4651
4651
  }
4652
- // nullish node values are routinely descended with vivify on `in` must not throw
4653
- return v == null ? false : Reflect.has(v, prop);
4652
+ // nullish/primitive node values are routinely descended with vivify on or probed
4653
+ // with `in` (e.g. isMutable) `in` must not throw
4654
+ return v == null || (typeof v !== 'object' && typeof v !== 'function')
4655
+ ? false
4656
+ : Reflect.has(v, prop);
4654
4657
  },
4655
4658
  ownKeys() {
4656
4659
  const v = untracked(source);
@@ -4708,6 +4711,9 @@ function toStore(source, { injector, vivify = false, noUnionLeaves = false, ...r
4708
4711
  [STORE_SHARED_GLOBALS]: STORE_OPTIONS[STORE_SHARED_GLOBALS],
4709
4712
  }));
4710
4713
  };
4714
+ if ((typeof prop === 'symbol' && prop !== Symbol.iterator) ||
4715
+ (typeof prop === 'string' && SIGNAL_FN_PROP.has(prop)))
4716
+ return target[prop];
4711
4717
  const k = untracked(kind);
4712
4718
  if (prop === 'extend' && k !== 'array')
4713
4719
  return (seed) => scopedStore(s, seed, isMutableSource
@@ -4725,8 +4731,6 @@ function toStore(source, { injector, vivify = false, noUnionLeaves = false, ...r
4725
4731
  yield receiver[i];
4726
4732
  };
4727
4733
  }
4728
- if (typeof prop === 'symbol' || SIGNAL_FN_PROP.has(prop))
4729
- return target[prop];
4730
4734
  if (k === 'array' && !isIndexProp(prop))
4731
4735
  return Reflect.get(target, prop, receiver);
4732
4736
  return getCachedChild(target, prop, () => buildChildNode(target, k === 'array' ? +prop : prop, isMutableSource, STORE_OPTIONS), STORE_OPTIONS[STORE_SHARED_GLOBALS].cache, STORE_OPTIONS[STORE_SHARED_GLOBALS].registry);