diff options
author | Adam Cozzette <acozzette@google.com> | 2016-09-27 15:36:41 -0700 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2016-10-10 11:44:21 -0700 |
commit | 4a4a1627c158d976ee80f278024a49ced8b12712 (patch) | |
tree | 7f619a542f6e83f251284b7561a789672df94b11 /js/test.proto | |
parent | 0bf5482712e849f67d7fe98217608f95ba60c776 (diff) | |
download | protobuf-4a4a1627c158d976ee80f278024a49ced8b12712.tar.gz protobuf-4a4a1627c158d976ee80f278024a49ced8b12712.tar.bz2 protobuf-4a4a1627c158d976ee80f278024a49ced8b12712.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; + } + } +} |