Skip to content

Commit 73dd25f

Browse files
committed
Use goog.asserts.assertString
1 parent f5bdd25 commit 73dd25f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

binary/encoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ jspb.BinaryEncoder.prototype.writeString = function(value) {
474474
var oldLength = this.buffer_.length;
475475

476476
// Protect against non-string values being silently ignored.
477-
goog.asserts.assert(value.charCodeAt);
477+
goog.asserts.assertString(value);
478478

479479
for (var i = 0; i < value.length; i++) {
480480

0 commit comments

Comments
 (0)