| Index: Source/modules/crypto/Crypto.cpp
|
| diff --git a/Source/modules/crypto/Crypto.cpp b/Source/modules/crypto/Crypto.cpp
|
| index a5d40861a0ace80ebdb4a9703513b7b43c3f19da..d54a14a04b0ff150a0d17d9edf7341b9720be1bf 100644
|
| --- a/Source/modules/crypto/Crypto.cpp
|
| +++ b/Source/modules/crypto/Crypto.cpp
|
| @@ -61,11 +61,11 @@ Crypto::Crypto()
|
| void Crypto::getRandomValues(ArrayBufferView* array, ExceptionState& exceptionState)
|
| {
|
| if (!array) {
|
| - exceptionState.throwDOMException(TypeMismatchError, "The provided ArrayBufferView is null.");
|
| + exceptionState.throwDOMException(TypeError, "The provided ArrayBufferView is null.");
|
| return;
|
| }
|
| if (!isIntegerArray(array)) {
|
| - exceptionState.throwDOMException(TypeMismatchError, String::format("The provided ArrayBufferView is of type '%s', which is not an integer array type.", array->typeName()));
|
| + exceptionState.throwDOMException(TypeError, String::format("The provided ArrayBufferView is of type '%s', which is not an integer array type.", array->typeName()));
|
| return;
|
| }
|
| if (array->byteLength() > 65536) {
|
|
|