Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Unified Diff: Source/bindings/modules/v8/custom/V8SubtleCryptoCustom.cpp

Issue 460923002: Decouple arity errors creation from throwing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/modules/v8/custom/V8SubtleCryptoCustom.cpp
diff --git a/Source/bindings/modules/v8/custom/V8SubtleCryptoCustom.cpp b/Source/bindings/modules/v8/custom/V8SubtleCryptoCustom.cpp
index e2e3beaa21c996842e0d1639752d5e486f890404..379dcd06928d26fe3466b23629ec82ec5b69c4f6 100644
--- a/Source/bindings/modules/v8/custom/V8SubtleCryptoCustom.cpp
+++ b/Source/bindings/modules/v8/custom/V8SubtleCryptoCustom.cpp
@@ -114,7 +114,8 @@ void V8SubtleCrypto::verifyMethodCustom(const v8::FunctionCallbackInfo<v8::Value
}
break;
default:
- throwArityTypeError(exceptionState, "[4]", info.Length());
+ setArityTypeError(exceptionState, "[4]", info.Length());
+ exceptionState.throwIfNeeded();
return;
break;
}

Powered by Google App Engine
This is Rietveld 408576698