Chromium Code Reviews| 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>(); |
| } |