Revert "Remove unused f expression from jscode gen. (#5573)"

The removed variable here is actually used breaking downstream bazel
builds.
pull/5935/head
Daniel Kurka 6 years ago committed by Adam Cozzette
parent e6779e9b2a
commit e2461b5f59
  1. 2
      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 obj = {",
" var f, obj = {",
"classname", GetMessagePath(options, desc));
bool first = true;

Loading…
Cancel
Save