diff options
author | Jean Boussier <[email protected]> | 2025-05-12 15:41:12 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-05-13 14:12:22 +0900 |
commit | cd7495a1d0e003360c96bb9746c1a8e6b3c6901c () | |
tree | 9a898c4c544a71f2cc8031ea7f4fbe2c3ecbfde1 /test/json/json_parser_test.rb | |
parent | 8cc1aa82f1a14b9d1822562eb943e7ffb41b426e (diff) |
[ruby/json] Further improve parsing errors
Report EOF when applicable instead of an empty fragment. Also stop fragment extraction on first whitespace. https://.com/ruby/json/commit/cc1daba860
Notes: Merged: https://.com/ruby/ruby/pull/13310
-rw-r--r-- | test/json/json_parser_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -646,7 +646,7 @@ class JSONParserTest < Test::Unit::TestCase JSON.parse('{"input":{"firstName":"Bob","lastName":"Mob","email":"[email protected]"}') end if RUBY_ENGINE == "ruby" - assert_equal %(expected ',' or '}' after object value, got: '' at line 1 column 72), error.message end end |