Index: Source/bindings/v8/ScriptValue.cpp |
diff --git a/Source/bindings/v8/ScriptValue.cpp b/Source/bindings/v8/ScriptValue.cpp |
index 5b05c23f6f8a620e7bfdbd0653c98ac36268e784..f3daf52201b72d78d9f026b1d079ce49248fbae1 100644 |
--- a/Source/bindings/v8/ScriptValue.cpp |
+++ b/Source/bindings/v8/ScriptValue.cpp |
@@ -109,7 +109,8 @@ static PassRefPtr<JSONValue> v8ToJSONValue(v8::Handle<v8::Value> value, int maxD |
RefPtr<JSONValue> propertyValue = v8ToJSONValue(object->Get(name), maxDepth, isolate); |
if (!propertyValue) |
return 0; |
- jsonObject->setValue(toWebCoreStringWithNullCheck(name), propertyValue); |
+ V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<WithNullCheck>, nameString, name, 0); |
+ jsonObject->setValue(nameString, propertyValue); |
} |
return jsonObject; |
} |