Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0c24b91

Browse files
tniessenmarco-ippolito
authored andcommitted
src: fix error handling in ExportJWKAsymmetricKey
Because call sites check IsNothing() on the return value ofExportJWKAsymmetricKey() and ignore the boolean value if the returnvalue is Just (i.e., not nothing), this function must return Nothing()instead of Just(false) when throwing a JavaScript error.PR-URL:#53767Reviewed-By: Filip Skokan <panva.ip@gmail.com>Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent2a2620e commit0c24b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/crypto/crypto_keys.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ Maybe<bool> ExportJWKAsymmetricKey(
505505
case EVP_PKEY_X448:returnExportJWKEdKey(env, key, target);
506506
}
507507
THROW_ERR_CRYPTO_JWK_UNSUPPORTED_KEY_TYPE(env);
508-
returnJust(false);
508+
returnNothing<bool>();
509509
}
510510

511511
std::shared_ptr<KeyObjectData>ImportJWKAsymmetricKey(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp