You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to add the string type support as before? Since javascript doesn't support long natively, my app always use the Long.toString(). When encode the message, the previous version will use the Long to parse the string back to Long. But in the new version, this can't be supported anymore.
longbits.js doesn't export this zero
var zero = new LongBits(0, 0);
writer.js directly use it. when the value isn't valid uint64, the exception will be thrown
WriterPrototype.uint64 = function write_uint64(value) {
var bits;
if (typeof value === 'number')
bits = value ? LongBits.fromNumber(value) : LongBits.zero;
else if (value.low || value.high)
bits = new LongBits(value.low >>> 0, value.high >>> 0);
else
bits = LongBits.zero;
return this.push(writeVarint64, bits.length(), bits);
};
The text was updated successfully, but these errors were encountered:
dreamershl
added a commit
to dreamershl/protobuf.js
that referenced
this issue
Dec 1, 2016
Is it possible to add the string type support as before? Since javascript doesn't support long natively, my app always use the Long.toString(). When encode the message, the previous version will use the Long to parse the string back to Long. But in the new version, this can't be supported anymore.
longbits.js doesn't export this zero
writer.js directly use it. when the value isn't valid uint64, the exception will be thrown
The text was updated successfully, but these errors were encountered: