capnweb 0.0.0-1c87560 → 0.0.0-32e362f

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.
@@ -403,6 +403,12 @@ var RpcPayload = class _RpcPayload {
403
403
  // Get the StubHook representing the given RpcTarget found inside this payload.
404
404
  getHookForRpcTarget(target, parent, dupStubs = true) {
405
405
  if (this.source === "params") {
406
+ if (dupStubs) {
407
+ let dupable = target;
408
+ if (typeof dupable.dup === "function") {
409
+ target = dupable.dup();
410
+ }
411
+ }
406
412
  return TargetStubHook.create(target, parent);
407
413
  } else if (this.source === "return") {
408
414
  let hook = this.rpcTargets?.get(target);