Index: third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp b/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp |
index 06ead69bf05e9c36ccf0f7b397d2614d69db8fd3..a9edce88e1073e7423181f392e337e42e88634b7 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp |
@@ -132,7 +132,9 @@ SerializedScriptValue::~SerializedScriptValue() { |
} |
PassRefPtr<SerializedScriptValue> SerializedScriptValue::nullValue() { |
- return create(ScriptValueSerializer::serializeNullValue()); |
+ // UChar rather than uint8_t here to get host endian behavior. |
+ static const UChar kNullData[] = {0xff09, 0x3000}; |
+ return create(reinterpret_cast<const char*>(kNullData), sizeof(kNullData)); |
} |
String SerializedScriptValue::toWireString() const { |