diff options
author | Yilun Chong <yilunchong@google.com> | 2018-07-12 13:47:16 -0700 |
---|---|---|
committer | Yilun Chong <yilunchong@google.com> | 2018-07-12 13:47:16 -0700 |
commit | f42ddff0ddc20184c4436ae274fcd19231142cdf (patch) | |
tree | 2ede0b1be462d2808600e2cbeba51f22f7fad34b /src | |
parent | 40f9ef2f5602e8fbcdc04dc1b32003538b00ef4e (diff) | |
download | protobuf-f42ddff0ddc20184c4436ae274fcd19231142cdf.tar.gz protobuf-f42ddff0ddc20184c4436ae274fcd19231142cdf.tar.bz2 protobuf-f42ddff0ddc20184c4436ae274fcd19231142cdf.zip |
fix commonjs js provide GOOGLE_CHECK
Diffstat (limited to 'src')
-rw-r--r-- | src/google/protobuf/compiler/js/js_generator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/js/js_generator.cc b/src/google/protobuf/compiler/js/js_generator.cc index d25a3668..45b906f5 100644 --- a/src/google/protobuf/compiler/js/js_generator.cc +++ b/src/google/protobuf/compiler/js/js_generator.cc @@ -1681,7 +1681,7 @@ void Generator::GenerateProvides(const GeneratorOptions& options, if (options.import_style == GeneratorOptions::kImportCommonJsStrict) { string namespaceObject = *it; // Remove "proto." from the namespace object - GOOGLE_CHECK(namespaceObject.compare(0, 6, "proto.")); + GOOGLE_CHECK(namespaceObject.compare(0, 6, "proto.") == 0); namespaceObject.erase(0, 6); printer->Print("goog.exportSymbol('$name$', null, proto);\n", "name", namespaceObject); |