When the argument's type is any, strong-remoting will treat integer numbers starting with 0 as string, e.g. 0668 will preserve the leading zero. However, floats are still converted to numbers, e.g. both 0.42 and 00.42 are converted to a number.
When the argument's type is number or integer, strong-remoting will treat integer numbers starting with 0 as numbers and discarding any extra leading zeroes.
Add tests describing behaviour for numbers with a leading zero, see https://github.com/strongloop/strong-remoting/issues/143.
any
, strong-remoting will treat integer numbers starting with0
as string, e.g.0668
will preserve the leading zero. However, floats are still converted to numbers, e.g. both0.42
and00.42
are converted to a number.number
orinteger
, strong-remoting will treat integer numbers starting with0
as numbers and discarding any extra leading zeroes.Forward-port #346 Connect to #312