File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ class {{=objectWrapper}} {
293293 this.freeze();
294294 }
295295
296- {{/* Set default values if the fields have. */ }}
296+ {{/* Set default values if the fields of the message have. */ }}
297297 _setDefaults() {
298298 {{~ it.spec.fields :field}}
299299 {{? field.type.isPrimitiveType && !field.type.isArray && field.default_value}}
@@ -376,8 +376,8 @@ class {{=objectWrapper}} {
376376 }
377377 }
378378 }
379- {{/* For non-typed array like int64/uint64/bool. */ }}
380379 {{??}}
380+ {{/* For non-typed array like int64/uint64/bool. */ }}
381381 this._refObject.{{=field.name}} = this._{{=field.name}}Array;
382382 {{?}}
383383 {{?? field.type.isArray && field.type.isPrimitiveType && isTypedArrayType(field.type) && field.type.isFixedSizeArray}}
@@ -661,9 +661,8 @@ class {{=arrayWrapper}} {
661661
662662 {{/* Put all data currently stored in `this._wrappers` into `this._refObject`. */ }}
663663 freeze(own) {
664- {{? usePlainTypedArray}}
665664 {{/* When it's a TypedArray: no need to copy to `this._refArray`. */ }}
666- {{?? }}
665+ {{? !usePlainTypedArray }}
667666 this._wrappers.forEach((wrapper, index) => {
668667 wrapper.freeze(own);
669668 this._refArray[index] = wrapper.refObject;
You can’t perform that action at this time.
0 commit comments