Commit f42ddff0 authored by Yilun Chong's avatar Yilun Chong

fix commonjs js provide GOOGLE_CHECK

parent 40f9ef2f
......@@ -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