summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/internal/crypto
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-06-23 12:52:48 +0200
committerGitHub <noreply@github.com>2023-06-23 12:52:48 +0200
commitf81027ae9f5646ddfa06046836001aaa726c4025 (patch)
tree38adc1ad4b5c8883a3977216d720aca68f620496 /ext/node/polyfills/internal/crypto
parent76f85a783e3ba4064027f581eb1fecf2ecba9de0 (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/node/polyfills/internal/crypto')
-rw-r--r--ext/node/polyfills/internal/crypto/diffiehellman.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/node/polyfills/internal/crypto/diffiehellman.ts b/ext/node/polyfills/internal/crypto/diffiehellman.ts
index a5817d59a..3d76deba4 100644
--- a/ext/node/polyfills/internal/crypto/diffiehellman.ts
+++ b/ext/node/polyfills/internal/crypto/diffiehellman.ts
@@ -189,7 +189,7 @@ export class DiffieHellman {
const generator = this.#checkGenerator();
const [privateKey, publicKey] = ops.op_node_dh_generate2(
this.#prime,
- this.#primeLength,
+ this.#primeLength ?? 0,
generator,
);