Open
Description
The comment for jspb.Message.GENERATE_FROM_OBJECT states:
* NOTE: By default no protos actually have a fromObject method. You need to
* add the jspb.generate_from_object options to the proto definition to
* activate the feature.
However, no such option is currently implemented in the open sourced version. I see the code which generates output for this option (GenerateClassFromObject
) but it is invoked 0 times.
~/protobuf$ grep -r GenerateClassFromObject .
./src/google/protobuf/compiler/js/js_generator.cc:void Generator::GenerateClassFromObject(const GeneratorOptions& options,
./src/google/protobuf/compiler/js/js_generator.h: void GenerateClassFromObject(const GeneratorOptions& options,
Can the jspb.generate_from_object option be open sourced?