mol_data_all 1.1.1618 → 1.1.1620

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
@@ -835,7 +835,7 @@ var $node = new Proxy({ require }, {
835
835
  const module = cache.get(name);
836
836
  if (module)
837
837
  return module;
838
- throw import(name).then(module => cache.set(name, module));
838
+ throw Object.assign(import(name).then(module => cache.set(name, module)), { cause: error });
839
839
  }
840
840
  $.$mol_fail_log(error);
841
841
  return null;