diff options
author | Adam Cozzette <acozzette@google.com> | 2016-09-27 15:36:41 -0700 |
---|---|---|
committer | Adam Cozzette <acozzette@google.com> | 2016-09-27 17:25:00 -0700 |
commit | c4d70123ac99ff1a0886fc7dfa492010b027210a (patch) | |
tree | bcf1dd1b91794db683348b862ca78548abcd228c /js/test.proto | |
parent | 787f3fb16380a403c99716a23ed09cd7b9ea5b67 (diff) | |
download | protobuf-c4d70123ac99ff1a0886fc7dfa492010b027210a.tar.gz protobuf-c4d70123ac99ff1a0886fc7dfa492010b027210a.tar.bz2 protobuf-c4d70123ac99ff1a0886fc7dfa492010b027210a.zip |
Fixed references to foreign nested messages with CommonJS-style imports
A bug was causing generated JSPB code with CommonJS-style imports to
refer incorrectly to nested messages from other .proto files. The
generated code would have things like "test_pb.InnerMessage" instead of
"test_pb.OuterMessage.InnerMessage". This commit fixes the problem by
correctly taking into account any message nesting.
Diffstat (limited to 'js/test.proto')
-rw-r--r-- | js/test.proto | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/test.proto b/js/test.proto index 48cb37e1..db238e1a 100644 --- a/js/test.proto +++ b/js/test.proto @@ -260,3 +260,11 @@ enum MapValueEnumNoBinary { message MapValueMessageNoBinary { optional int32 foo = 1; } + +message Deeply { + message Nested { + message Message { + optional int32 count = 1; + } + } +} |