summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/js/SerializedScriptValue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/js/SerializedScriptValue.cpp')
-rw-r--r--WebCore/bindings/js/SerializedScriptValue.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/WebCore/bindings/js/SerializedScriptValue.cpp b/WebCore/bindings/js/SerializedScriptValue.cpp
index fbf8899..e761480 100644
--- a/WebCore/bindings/js/SerializedScriptValue.cpp
+++ b/WebCore/bindings/js/SerializedScriptValue.cpp
@@ -56,7 +56,7 @@ public:
void set(const Identifier& propertyName, const SerializedScriptValueData& value)
{
ASSERT(m_names.size() == m_values.size());
- m_names.append(String(propertyName.ustring()).crossThreadString().impl());
+ m_names.append(identifierToString(propertyName).crossThreadString().impl());
m_values.append(value);
}
@@ -554,7 +554,7 @@ struct SerializingTreeWalker : public BaseWalker {
return SerializedScriptValueData(value);
if (value.isString())
- return SerializedScriptValueData(asString(value)->value(m_exec));
+ return SerializedScriptValueData(ustringToString(asString(value)->value(m_exec)));
if (value.isNumber())
return SerializedScriptValueData(SerializedScriptValueData::NumberType, value.uncheckedGetNumber());
@@ -777,7 +777,7 @@ struct DeserializingTreeWalker : public BaseWalker {
void putProperty(JSObject* object, const RefPtr<StringImpl> propertyName, JSValue value)
{
- object->putDirect(Identifier(m_exec, String(propertyName)), value);
+ object->putDirect(Identifier(m_exec, stringToUString(String(propertyName))), value);
}
bool startArray(RefPtr<SerializedArray>, JSArray* outArray)