Chromium Code Reviews| Index: Source/bindings/v8/custom/V8HTMLDocumentCustom.cpp |
| diff --git a/Source/bindings/v8/custom/V8HTMLDocumentCustom.cpp b/Source/bindings/v8/custom/V8HTMLDocumentCustom.cpp |
| index afeade82bd522a4a34e0f1a0973778edd870928c..5641961c54c75109b0c24f9db53d71d1f251f60b 100644 |
| --- a/Source/bindings/v8/custom/V8HTMLDocumentCustom.cpp |
| +++ b/Source/bindings/v8/custom/V8HTMLDocumentCustom.cpp |
| @@ -60,8 +60,10 @@ namespace WebCore { |
| static String writeHelperGetString(const v8::FunctionCallbackInfo<v8::Value>& args) |
| { |
| StringBuilder builder; |
| - for (int i = 0; i < args.Length(); ++i) |
| - builder.append(toWebCoreString(args[i])); |
| + for (int i = 0; i < args.Length(); ++i) { |
| + V8TRYCATCH_FOR_V8STRINGRESOURCE_RETURN(V8StringResource<>, stringArgument, args[i], String()); |
|
haraken
2013/09/12 17:33:52
Ditto.
|
| + builder.append(stringArgument); |
| + } |
| return builder.toString(); |
| } |