mol_wire_lib 1.0.1571 → 1.0.1573

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
@@ -2909,7 +2909,7 @@ var $node = new Proxy({ require }, {
2909
2909
  const module = cache.get(name);
2910
2910
  if (module)
2911
2911
  return module;
2912
- throw import(name).then(module => cache.set(name, module));
2912
+ throw Object.assign(import(name).then(module => cache.set(name, module)), { cause: error });
2913
2913
  }
2914
2914
  $.$mol_fail_log(error);
2915
2915
  return null;