-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bad argument on splitted float #26
Comments
Hm, jsx works well with explicit_end option. |
I'm happy you found the solution, but this behaviour is inconsistent with what I want jsx to do. I'm going to make it more intuitive. Thanks for finding it |
the decoder is now much smarter about what's unambiguously incomplete and what is not. you should no longer need the Eshell V5.9.1 (abort with ^G) |
It works for integer() too, thanks a lot. |
this is the only significant difference between develop and master so it should be safe to use but there could be lurking edge cases i haven't considered. if you don't use |
Ok, I'll try, thanks. |
Hi,
just found incorrect decoder behaviour on splitted float number:
(bocore@tommy.local)40> {incomplete, F} = jsx:decode(<<"{"library": "jsx", "awesome":0">>).
{incomplete,#Fun<jsx_decoder.37.8673461>}
(bocore@tommy.local)41> F(<<".21}">>).
** exception error: bad argument
in function jsx_decoder:maybe_done/4
called as jsx_decoder:maybe_done(<<".21}">>,
{jsx_to_term,{[[{<<"awesome">>,0},{<<"library">>,<<"jsx">>}],
[]],
{opts,binary,false}}},
[object],
{opts,false,false,false,false,false,false,false,false,false,
false})
The text was updated successfully, but these errors were encountered: