| Index: Source/bindings/v8/custom/V8SubtleCryptoCustom.cpp
|
| diff --git a/Source/bindings/v8/custom/V8SubtleCryptoCustom.cpp b/Source/bindings/v8/custom/V8SubtleCryptoCustom.cpp
|
| index a8a40d9b2b23f2774753bfeb945ce917e57a1c29..5fd4452abe5cfa79965d028f24d0f8964fcaf273 100644
|
| --- a/Source/bindings/v8/custom/V8SubtleCryptoCustom.cpp
|
| +++ b/Source/bindings/v8/custom/V8SubtleCryptoCustom.cpp
|
| @@ -80,6 +80,7 @@ void verify4Method(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| void V8SubtleCrypto::verifyMethodCustom(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| v8::Isolate* isolate = info.GetIsolate();
|
| + ExceptionState exceptionState(ExceptionState::ExecutionContext, "verify", "SubtleCrypto", info.Holder(), isolate);
|
| // typedef (ArrayBuffer or ArrayBufferView) CryptoOperationData;
|
| //
|
| // Promise verify(Dictionary algorithm, Key key,
|
| @@ -112,11 +113,10 @@ void V8SubtleCrypto::verifyMethodCustom(const v8::FunctionCallbackInfo<v8::Value
|
| return;
|
| }
|
| break;
|
| - }
|
| - ExceptionState exceptionState(ExceptionState::ExecutionContext, "verify", "SubtleCrypto", info.Holder(), isolate);
|
| - if (UNLIKELY(info.Length() < 4)) {
|
| - throwArityTypeError(exceptionState, 4, info.Length());
|
| + default:
|
| + throwArityTypeError(exceptionState, "[4]", info.Length());
|
| return;
|
| + break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| exceptionState.throwIfNeeded();
|
|
|