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

Unified Diff: third_party/WebKit/Source/bindings/modules/v8/serialization/V8ScriptValueSerializerForModulesTest.cpp

Issue 2509713002: binding: Makes Dictionary throw an exception (constructor). (Closed)
Patch Set: Addressed review comments. Created 4 years, 1 month 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: third_party/WebKit/Source/bindings/modules/v8/serialization/V8ScriptValueSerializerForModulesTest.cpp
diff --git a/third_party/WebKit/Source/bindings/modules/v8/serialization/V8ScriptValueSerializerForModulesTest.cpp b/third_party/WebKit/Source/bindings/modules/v8/serialization/V8ScriptValueSerializerForModulesTest.cpp
index eb01435daf7821442ea2a04d27690bad57455d79..2006d072ba171a1a80d23f96c5a0fe416f84efa7 100644
--- a/third_party/WebKit/Source/bindings/modules/v8/serialization/V8ScriptValueSerializerForModulesTest.cpp
+++ b/third_party/WebKit/Source/bindings/modules/v8/serialization/V8ScriptValueSerializerForModulesTest.cpp
@@ -242,7 +242,8 @@ CryptoKey* convertCryptoResult<CryptoKey*>(const ScriptValue& value) {
}
template <>
CryptoKeyPair convertCryptoResult<CryptoKeyPair>(const ScriptValue& value) {
- Dictionary dictionary(value.isolate(), value.v8Value());
+ NonThrowableExceptionState exceptionState;
+ Dictionary dictionary(value.isolate(), value.v8Value(), exceptionState);
v8::Local<v8::Value> privateKey, publicKey;
EXPECT_TRUE(dictionary.get("publicKey", publicKey));
EXPECT_TRUE(dictionary.get("privateKey", privateKey));

Powered by Google App Engine
This is Rietveld 408576698