mirror of
https://github.com/ruby/ruby.git
synced 2026-01-28 04:54:23 +00:00
Rather than checking the class we can check the type. This is very subtly different for String subclasses, but I think it's OK. We also save on checking the type again in the fast path. https://github.com/flori/json/commit/772a0201ab