|
@@ -2272,7 +2272,7 @@ void Generator::GenerateClassToObject(const GeneratorOptions& options,
|
|
" * @suppress {unusedLocalVariables} f is only used for nested messages\n"
|
|
" * @suppress {unusedLocalVariables} f is only used for nested messages\n"
|
|
" */\n"
|
|
" */\n"
|
|
"$classname$.toObject = function(includeInstance, msg) {\n"
|
|
"$classname$.toObject = function(includeInstance, msg) {\n"
|
|
- " var obj = {",
|
|
|
|
|
|
+ " var f, obj = {",
|
|
"classname", GetMessagePath(options, desc));
|
|
"classname", GetMessagePath(options, desc));
|
|
|
|
|
|
bool first = true;
|
|
bool first = true;
|