@lvce-editor/renderer-process 30.5.0 → 30.7.0
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.
|
@@ -2449,7 +2449,14 @@ class IpcError extends VError$1 {
|
|
|
2449
2449
|
const cause = new Error(message);
|
|
2450
2450
|
// @ts-ignore
|
|
2451
2451
|
cause.code = code;
|
|
2452
|
-
|
|
2452
|
+
if (stack) {
|
|
2453
|
+
Object.defineProperty(cause, 'stack', {
|
|
2454
|
+
configurable: true,
|
|
2455
|
+
enumerable: false,
|
|
2456
|
+
value: stack,
|
|
2457
|
+
writable: true
|
|
2458
|
+
});
|
|
2459
|
+
}
|
|
2453
2460
|
super(cause, betterMessage);
|
|
2454
2461
|
} else {
|
|
2455
2462
|
super(betterMessage);
|