The removed variable here is actually used breaking downstream bazel builds.
@@ -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 obj = {",
+ " var f, obj = {",
"classname", GetMessagePath(options, desc));
bool first = true;