[WebIDL] Add support for converting dictionaries to JS
[WebKit-https.git] / Source / WebCore / crypto / algorithms / CryptoAlgorithmAES_KW.cpp
index dfb4bfb..afa7c5d 100644 (file)
@@ -76,7 +76,7 @@ void CryptoAlgorithmAES_KW::generateKey(const CryptoAlgorithmParameters& paramet
         return;
     }
 
-    callback(result.get(), nullptr);
+    callback(WTFMove(result));
 }
 
 void CryptoAlgorithmAES_KW::importKey(SubtleCrypto::KeyFormat format, KeyData&& data, const std::unique_ptr<CryptoAlgorithmParameters>&& parameters, bool extractable, CryptoKeyUsageBitmap usages, KeyCallback&& callback, ExceptionCallback&& exceptionCallback)
@@ -193,7 +193,8 @@ ExceptionOr<void> CryptoAlgorithmAES_KW::generateKey(const CryptoAlgorithmParame
         failureCallback();
         return { };
     }
-    callback(result.get(), nullptr);
+
+    callback(WTFMove(result));
     return { };
 }