diff options
author | Jisi Liu <liujisi@google.com> | 2017-08-07 11:47:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-07 11:47:29 -0700 |
commit | 3afcded28a6aa9c44adf801ca5bff2133fcf3030 (patch) | |
tree | cebd73fdf090a98c32ad1a1c996af9cc8f1f8ad6 /src/google | |
parent | 176713d6fbbf72056b009f76e7625f267273bd75 (diff) | |
parent | 8f4b8e430a0cf087af423be434cf8d837027c651 (diff) | |
download | protobuf-3afcded28a6aa9c44adf801ca5bff2133fcf3030.tar.gz protobuf-3afcded28a6aa9c44adf801ca5bff2133fcf3030.tar.bz2 protobuf-3afcded28a6aa9c44adf801ca5bff2133fcf3030.zip |
Merge pull request #3461 from TeBoring/3.4.xv3.4.0rc1
Merge master into 3.4.x
Diffstat (limited to 'src/google')
-rwxr-xr-x | src/google/protobuf/compiler/js/js_generator.cc | 1 | ||||
-rw-r--r-- | src/google/protobuf/test_messages_proto3.proto | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/google/protobuf/compiler/js/js_generator.cc b/src/google/protobuf/compiler/js/js_generator.cc index ba078703..73d32762 100755 --- a/src/google/protobuf/compiler/js/js_generator.cc +++ b/src/google/protobuf/compiler/js/js_generator.cc @@ -197,6 +197,7 @@ string ModuleAlias(const string& filename) { string basename = StripProto(filename); StripString(&basename, "-", '$'); StripString(&basename, "/", '_'); + StripString(&basename, ".", '_'); return basename + "_pb"; } diff --git a/src/google/protobuf/test_messages_proto3.proto b/src/google/protobuf/test_messages_proto3.proto index abf73427..84b9da99 100644 --- a/src/google/protobuf/test_messages_proto3.proto +++ b/src/google/protobuf/test_messages_proto3.proto @@ -39,6 +39,7 @@ syntax = "proto3"; package protobuf_test_messages.proto3; option java_package = "com.google.protobuf_test_messages.proto3"; +option objc_class_prefix = "Proto3"; // This is the default, but we specify it here explicitly. option optimize_for = SPEED; |