(a: A, _: S)
| 1190 | const proto = Object.getPrototypeOf(pojo) |
| 1191 | if (proto !== Object.prototype && proto !== null) { |
| 1192 | throw new Error("Cannot clone object with non-Object constructor or null prototype") |
| 1193 | } |
| 1194 | return { ...pojo } as T |
| 1195 | } |
| 1196 | return pojo |
| 1197 | } |