Right now, I64RW accepts buffers, arrays, numbers, strings and {hi, lo} objects. I64DateRW on the other hand only accepts number, strings and dates.
At the very least, passing anything other than number, string or date should throw. Right now, passing an array results in a date at the epoch (because Long.fromNumber(NaN) gives lo/hi = 0).
This is causing confusion when passing dates between services which use the date annotation and services which do not.
Right now,
I64RW
accepts buffers, arrays, numbers, strings and {hi, lo} objects.I64DateRW
on the other hand only accepts number, strings and dates.At the very least, passing anything other than number, string or date should throw. Right now, passing an array results in a date at the epoch (because Long.fromNumber(NaN) gives lo/hi = 0).
This is causing confusion when passing dates between services which use the date annotation and services which do not.