Skip to content

Commit

Permalink
Merge pull request #4903 from BSBandme/fix_js_build
Browse files Browse the repository at this point in the history
fix commonjs js provide GOOGLE_CHECK
  • Loading branch information
BSBandme committed Jul 12, 2018
2 parents 84752ff + f42ddff commit f21d4d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/google/protobuf/compiler/js/js_generator.cc
Expand Up @@ -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);
Expand Down

0 comments on commit f21d4d6

Please sign in to comment.