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
{{ message }}
This repository has been archived by the owner on May 7, 2018. It is now read-only.
So, if you pass invalid utf sequence to .decode method, you'd receive ArgumentError while expecting OkJson::Error
OkJson.decode("\255")
ArgumentError: invalid byte sequence in UTF-8
from /gems/okjson/okjson.rb:264:in `match'
from /gems/okjson/okjson.rb:264:in `numtok'
from /gems/okjson/okjson.rb:253:in `tok'
from /gems/okjson/okjson.rb:213:in `lex'
from /gems/okjson/okjson.rb:44:in `decode'
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
So, if you pass invalid utf sequence to
.decode
method, you'd receiveArgumentError
while expectingOkJson::Error
The text was updated successfully, but these errors were encountered: