Unverified Commit f21d4d68 authored by Yilun Chong's avatar Yilun Chong Committed by GitHub

Merge pull request #4903 from BSBandme/fix_js_build

fix commonjs js provide GOOGLE_CHECK
parents 84752ff3 f42ddff0
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment