aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf
diff options
context:
space:
mode:
authorGravatar Jisi Liu <liujisi@google.com>2017-08-07 11:47:29 -0700
committerGravatar GitHub <noreply@github.com>2017-08-07 11:47:29 -0700
commit3afcded28a6aa9c44adf801ca5bff2133fcf3030 (patch)
treecebd73fdf090a98c32ad1a1c996af9cc8f1f8ad6 /src/google/protobuf
parent176713d6fbbf72056b009f76e7625f267273bd75 (diff)
parent8f4b8e430a0cf087af423be434cf8d837027c651 (diff)
Merge pull request #3461 from TeBoring/3.4.x
Merge master into 3.4.x
Diffstat (limited to 'src/google/protobuf')
-rwxr-xr-xsrc/google/protobuf/compiler/js/js_generator.cc1
-rw-r--r--src/google/protobuf/test_messages_proto3.proto1
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;