mol_regexp 0.0.1669 → 0.0.1670
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 +1 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.test.js
CHANGED
|
@@ -570,7 +570,7 @@ var $node = new Proxy({ require }, {
|
|
|
570
570
|
const module = cache.get(name);
|
|
571
571
|
if (module)
|
|
572
572
|
return module;
|
|
573
|
-
throw import(name).then(module => cache.set(name, module));
|
|
573
|
+
throw Object.assign(import(name).then(module => cache.set(name, module)), { cause: error });
|
|
574
574
|
}
|
|
575
575
|
$.$mol_fail_log(error);
|
|
576
576
|
return null;
|