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.js CHANGED
@@ -1917,7 +1917,9 @@ var $;
1917
1917
  var $;
1918
1918
  (function ($) {
1919
1919
  function $mol_wire_solo(host, field, descr) {
1920
- const orig = descr.value;
1920
+ if (!descr)
1921
+ descr = Reflect.getOwnPropertyDescriptor(host, field);
1922
+ const orig = descr?.value ?? host[field];
1921
1923
  const sup = Reflect.getPrototypeOf(host);
1922
1924
  if (typeof sup[field] === 'function') {
1923
1925
  Object.defineProperty(orig, 'name', { value: sup[field].name });
@@ -1955,7 +1957,9 @@ var $;
1955
1957
  var $;
1956
1958
  (function ($) {
1957
1959
  function $mol_wire_plex(host, field, descr) {
1958
- const orig = descr.value;
1960
+ if (!descr)
1961
+ descr = Reflect.getOwnPropertyDescriptor(host, field);
1962
+ const orig = descr?.value ?? host[field];
1959
1963
  const sup = Reflect.getPrototypeOf(host);
1960
1964
  if (typeof sup[field] === 'function') {
1961
1965
  Object.defineProperty(orig, 'name', { value: sup[field].name });