mol_wire_lib 1.0.205 → 1.0.208

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
@@ -1212,7 +1212,9 @@ var $;
1212
1212
  var $;
1213
1213
  (function ($) {
1214
1214
  function $mol_wire_solo(host, field, descr) {
1215
- const orig = descr.value;
1215
+ if (!descr)
1216
+ descr = Reflect.getOwnPropertyDescriptor(host, field);
1217
+ const orig = descr?.value ?? host[field];
1216
1218
  const sup = Reflect.getPrototypeOf(host);
1217
1219
  if (typeof sup[field] === 'function') {
1218
1220
  Object.defineProperty(orig, 'name', { value: sup[field].name });
@@ -1250,7 +1252,9 @@ var $;
1250
1252
  var $;
1251
1253
  (function ($) {
1252
1254
  function $mol_wire_plex(host, field, descr) {
1253
- const orig = descr.value;
1255
+ if (!descr)
1256
+ descr = Reflect.getOwnPropertyDescriptor(host, field);
1257
+ const orig = descr?.value ?? host[field];
1254
1258
  const sup = Reflect.getPrototypeOf(host);
1255
1259
  if (typeof sup[field] === 'function') {
1256
1260
  Object.defineProperty(orig, 'name', { value: sup[field].name });