@php-wasm/universal 2.0.0 → 2.0.2

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/index.js CHANGED
@@ -3294,10 +3294,11 @@ const throwTransferHandler = transferHandlers.get(
3294
3294
  },
3295
3295
  deserialize: (t) => {
3296
3296
  if (t.isError) {
3297
- const e = deserializeError(t.value);
3298
- throw new Error("Comlink method call failed", {
3299
- cause: e
3300
- });
3297
+ const e = deserializeError(t.value), r = new Error("Comlink method call failed");
3298
+ let s = e;
3299
+ for (; s.cause; )
3300
+ s = s.cause;
3301
+ throw s.cause = r, e;
3301
3302
  }
3302
3303
  throw t.value;
3303
3304
  }