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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp

Issue 2354873006: Include the interface name when an uncloneable DOM wrapper is encountered. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp b/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp
index 1674215d708636a7810e638e281690610b097b9d..f3ef4295bdb43861660f146f63522a91d23c3245 100644
--- a/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/serialization/V8ScriptValueSerializer.cpp
@@ -129,8 +129,10 @@ v8::Maybe<bool> V8ScriptValueSerializer::WriteHostObject(v8::Isolate* isolate, v
DCHECK(!exceptionState.hadException());
return v8::Just(true);
}
- if (!exceptionState.hadException())
- exceptionState.throwDOMException(DataCloneError, "An object could not be cloned.");
+ if (!exceptionState.hadException()) {
+ String interface = wrappable->wrapperTypeInfo()->interfaceName;
jbroman 2016/09/20 23:48:54 Before esprehn points it out, this does one unnece
haraken 2016/09/20 23:50:08 Can we use StringBuilder?
+ exceptionState.throwDOMException(DataCloneError, interface + " object could not be cloned.");
esprehn 2016/09/21 00:07:20 String() + interface + " object could not be clone
+ }
return v8::Nothing<bool>();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698