mol_mutable 0.0.1051 → 0.0.1053
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
|
@@ -305,7 +305,7 @@ var $node = new Proxy({ require }, {
|
|
|
305
305
|
const module = cache.get(name);
|
|
306
306
|
if (module)
|
|
307
307
|
return module;
|
|
308
|
-
throw import(name).then(module => cache.set(name, module));
|
|
308
|
+
throw Object.assign(import(name).then(module => cache.set(name, module)), { cause: error });
|
|
309
309
|
}
|
|
310
310
|
$.$mol_fail_log(error);
|
|
311
311
|
return null;
|