Index: Source/bindings/tests/results/V8TestInterface.cpp |
diff --git a/Source/bindings/tests/results/V8TestInterface.cpp b/Source/bindings/tests/results/V8TestInterface.cpp |
index bbee9965f60bce963ff6afe0b47f66337cfa653c..28eb35e1dacf4b68b8a90b8bb6eca28ef45f1c40 100644 |
--- a/Source/bindings/tests/results/V8TestInterface.cpp |
+++ b/Source/bindings/tests/results/V8TestInterface.cpp |
@@ -1150,7 +1150,8 @@ static void partial2StaticVoidMethodMethodCallback(const v8::FunctionCallbackInf |
static void toStringMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder()); |
- v8SetReturnValueString(info, impl->toString(), info.GetIsolate()); |
+ String result = impl->toString(); |
+ v8SetReturnValueString(info, result, info.GetIsolate()); |
} |
static void toStringMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |