Commit 6adb5614 authored by jbroman's avatar jbroman Committed by Commit bot

Include the interface name when an uncloneable DOM wrapper is encountered.

This has been useful in my debugging, and could be useful to authors as well.

BUG=148757

Review-Url: https://codereview.chromium.org/2354873006
Cr-Commit-Position: refs/heads/master@{#419948}
parent 1d09b45a
......@@ -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;
exceptionState.throwDOMException(DataCloneError, interface + " object could not be cloned.");
}
return v8::Nothing<bool>();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment