mol_jsx_lib 0.0.248 → 0.0.249

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.
package/node.test.js CHANGED
@@ -1776,7 +1776,8 @@ var $;
1776
1776
  const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1777
1777
  if (existen)
1778
1778
  return existen;
1779
- const key = `${host?.[Symbol.toStringTag] ?? host}.${field}`;
1779
+ const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1780
+ const key = `${prefix}.${field}`;
1780
1781
  const fiber = new $mol_wire_atom(key, task, host, []);
1781
1782
  (host ?? task)[field] = fiber;
1782
1783
  return fiber;
@@ -1784,7 +1785,8 @@ var $;
1784
1785
  static plex(host, task, key) {
1785
1786
  const field = task.name + '()';
1786
1787
  let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
1787
- const id = `${host?.[Symbol.toStringTag] ?? host}.${task.name}(${$mol_key(key)})`;
1788
+ const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
1789
+ const id = `${prefix}.${task.name}(${$mol_key(key)})`;
1788
1790
  if (dict) {
1789
1791
  const existen = dict.get(id);
1790
1792
  if (existen)