diff --git a/src/google/protobuf/compiler/js/js_generator.cc b/src/google/protobuf/compiler/js/js_generator.cc index fd0367bc12..71e9ba8889 100644 --- a/src/google/protobuf/compiler/js/js_generator.cc +++ b/src/google/protobuf/compiler/js/js_generator.cc @@ -2272,7 +2272,7 @@ void Generator::GenerateClassToObject(const GeneratorOptions& options, " * @suppress {unusedLocalVariables} f is only used for nested messages\n" " */\n" "$classname$.toObject = function(includeInstance, msg) {\n" - " var f, obj = {", + " var obj = {", "classname", GetMessagePath(options, desc)); bool first = true;