Closed ffigiel closed 8 years ago
Hi @megapctr, thanks for the report! It does look like an oversight in the parsing. I would actually go as far as say I would except both of those examples to throw an error, rather than simply return NaN
, since the purpose is to parse, and that would be a parse error. Otherwise, returning null
would be in line with the other inputs you can give.
@theofidry do you have any thoughts on this?
Will look into it tonight :)
Thanks for super quick reaction to my issue! :zap: I see that bytes@2.3.0 doesn't include this fix, what's the eta for 2.4.0?
@megapctr we cannot ship it for 2.x as it brings breaking changes (you can no longer use bytes('2 bytes')
for example. So it will be for the next major release.
@dougwilson do you have any release date in mind?
@theofidry release for 3.0 is just as soon as we feel it's ready to go :) I did find a couple things I wanted to fix, and should make issues here in this repo to tack (and for anyone else to make a PR for before I can).
:+1:
I just noticed this behavior:
Is this a bug? I would expect a
NaN
instead of250B
, like in this example: