(raw)
| 1015 | const kSlotUsages = 7; |
| 1016 | |
| 1017 | function cloneAlgorithm(raw) { |
| 1018 | const cloned = { ...raw }; |
| 1019 | if (ObjectPrototypeHasOwnProperty(cloned, 'hash') && |
| 1020 | cloned.hash !== undefined) { |
| 1021 | cloned.hash = { ...cloned.hash }; |
| 1022 | } |
| 1023 | if (ObjectPrototypeHasOwnProperty(cloned, 'publicExponent') && |
| 1024 | cloned.publicExponent !== undefined) { |
| 1025 | cloned.publicExponent = new Uint8Array(cloned.publicExponent); |
| 1026 | } |
| 1027 | return cloned; |
| 1028 | } |
| 1029 | |
| 1030 | function cloneInternalAlgorithm(raw) { |
| 1031 | const cloned = { __proto__: null, ...raw }; |
no outgoing calls
no test coverage detected