Index: Source/modules/crypto/AesKeyGenParams.cpp |
diff --git a/Source/modules/crypto/AesKeyGenParams.cpp b/Source/modules/crypto/AesKeyGenParams.cpp |
index 2fa560c367bfe2b5e97508575a6e366355cea57f..5df24f8fae88fdd86972877cda431bdb330bb9b4 100644 |
--- a/Source/modules/crypto/AesKeyGenParams.cpp |
+++ b/Source/modules/crypto/AesKeyGenParams.cpp |
@@ -43,6 +43,7 @@ unsigned short AesKeyGenParams::length() const |
AesKeyGenParams::AesKeyGenParams(const WebKit::WebCryptoAlgorithm& algorithm) |
: Algorithm(algorithm) |
{ |
+ ASSERT(algorithm.aesKeyGenParams()); |
ScriptWrappable::init(this); |
} |