mol_jsx_lib 0.0.73 → 0.0.76

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
@@ -1909,7 +1909,9 @@ var $;
1909
1909
  var $;
1910
1910
  (function ($) {
1911
1911
  function $mol_wire_solo(host, field, descr) {
1912
- const orig = descr.value;
1912
+ if (!descr)
1913
+ descr = Reflect.getOwnPropertyDescriptor(host, field);
1914
+ const orig = descr?.value ?? host[field];
1913
1915
  const sup = Reflect.getPrototypeOf(host);
1914
1916
  if (typeof sup[field] === 'function') {
1915
1917
  Object.defineProperty(orig, 'name', { value: sup[field].name });
@@ -1947,7 +1949,9 @@ var $;
1947
1949
  var $;
1948
1950
  (function ($) {
1949
1951
  function $mol_wire_plex(host, field, descr) {
1950
- const orig = descr.value;
1952
+ if (!descr)
1953
+ descr = Reflect.getOwnPropertyDescriptor(host, field);
1954
+ const orig = descr?.value ?? host[field];
1951
1955
  const sup = Reflect.getPrototypeOf(host);
1952
1956
  if (typeof sup[field] === 'function') {
1953
1957
  Object.defineProperty(orig, 'name', { value: sup[field].name });