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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/SerializedScriptValue.cpp

Issue 2684593006: Remove ScriptValueSerializer::serializeNullValue. (Closed)
Patch Set: Created 3 years, 10 months 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
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 {

Powered by Google App Engine
This is Rietveld 408576698