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; |
} |