Skip to content

Commit 339b452

Browse files
committed
Sync from Piper @359788468
PROTOBUF_SYNC_PIPER
2 parents 5be1377 + 09acea4 commit 339b452

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

commonjs/rewrite_tests_for_commonjs.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ lineReader.on('line', function(line) {
8080
if (isRequire) {
8181
if (module) { // Skip goog.require() lines before the first directive.
8282
var fullSym = isRequire[1];
83+
// Skip lines importing from jspb.*, these are handled by the header above.
84+
if (fullSym.match(/^jspb\./)) return;
8385
var sym = tryStripPrefix(fullSym, pkg);
8486
console.log("googleProtobuf.exportSymbol('" + fullSym + "', " + module + sym + ', global);');
8587
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "google-protobuf",
3-
"version": "3.14.0",
3+
"version": "3.15.2",
44
"description": "Protocol Buffers for JavaScript",
55
"main": "google-protobuf.js",
66
"files": [

src/google/protobuf/compiler/js/js_generator.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ void Generator::GenerateHeader(const GeneratorOptions& options,
16281628
" * @fileoverview\n"
16291629
" * @enhanceable\n"
16301630
// TODO(b/152440355): requireType/requires diverged from internal version.
1631-
" * @suppress {missingRequire} reports error on implict type usages.\n"
1631+
" * @suppress {missingRequire} reports error on implicit type usages.\n"
16321632
" * @suppress {messageConventions} JS Compiler reports an "
16331633
"error if a variable or\n"
16341634
" * field starts with 'MSG_' and isn't a translatable "

0 commit comments

Comments
 (0)