diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-06-23 12:52:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-23 12:52:48 +0200 |
commit | f81027ae9f5646ddfa06046836001aaa726c4025 (patch) | |
tree | 38adc1ad4b5c8883a3977216d720aca68f620496 /ext/crypto/00_crypto.js | |
parent | 76f85a783e3ba4064027f581eb1fecf2ecba9de0 (diff) |
fix(serde_v8): Do not coerce values in serde_v8 (#19569)
Fixes #19568
Values are not coerced to the desired type during deserialisation. This
makes serde_v8 stricter.
---------
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'ext/crypto/00_crypto.js')
-rw-r--r-- | ext/crypto/00_crypto.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/crypto/00_crypto.js b/ext/crypto/00_crypto.js index 5189ea181..c75d3b71d 100644 --- a/ext/crypto/00_crypto.js +++ b/ext/crypto/00_crypto.js @@ -4417,7 +4417,7 @@ async function deriveBits(normalizedAlgorithm, baseKey, length) { publicKey: publicKeyData, algorithm: "ECDH", namedCurve: publicKey[_algorithm].namedCurve, - length, + length: length ?? 0, }); // 8. |