mol_tree2 1.0.1226 → 1.0.1228

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
@@ -1665,7 +1665,7 @@ var $node = new Proxy({ require }, {
1665
1665
  const module = cache.get(name);
1666
1666
  if (module)
1667
1667
  return module;
1668
- throw import(name).then(module => cache.set(name, module));
1668
+ throw Object.assign(import(name).then(module => cache.set(name, module)), { cause: error });
1669
1669
  }
1670
1670
  $.$mol_fail_log(error);
1671
1671
  return null;