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

Unified Diff: Source/web/WebSerializedScriptValue.cpp

Issue 114363002: Structured cloning: improve DataCloneError reporting. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased + reset V8TestInterfaceConstructor.cpp result Created 7 years 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 | « Source/modules/indexeddb/IDBObjectStore.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSerializedScriptValue.cpp
diff --git a/Source/web/WebSerializedScriptValue.cpp b/Source/web/WebSerializedScriptValue.cpp
index 553bdbcfe3cfc4de6794f0f033910bb9a8dca27a..ec5a3f5dd1ea7858b3c550b4ffa81eab6baceac6 100644
--- a/Source/web/WebSerializedScriptValue.cpp
+++ b/Source/web/WebSerializedScriptValue.cpp
@@ -31,6 +31,7 @@
#include "config.h"
#include "WebSerializedScriptValue.h"
+#include "bindings/v8/ExceptionState.h"
#include "bindings/v8/SerializedScriptValue.h"
#include "public/platform/WebString.h"
@@ -45,9 +46,9 @@ WebSerializedScriptValue WebSerializedScriptValue::fromString(const WebString& s
WebSerializedScriptValue WebSerializedScriptValue::serialize(v8::Handle<v8::Value> value)
{
- bool didThrow;
- WebSerializedScriptValue serializedValue = SerializedScriptValue::create(value, 0, 0, didThrow, v8::Isolate::GetCurrent());
- if (didThrow)
+ WebCore::TrackExceptionState exceptionState;
+ WebSerializedScriptValue serializedValue = SerializedScriptValue::create(value, 0, 0, exceptionState, v8::Isolate::GetCurrent());
+ if (exceptionState.hadException())
return createInvalid();
return serializedValue;
}
« no previous file with comments | « Source/modules/indexeddb/IDBObjectStore.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698