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 }}
Repository navigation
JSON.generate ignores to_json method inside Fixnum or Bignum #254
I confirm that this bug is still present. It affects the C implementation, but not json/pure. This is due to an optimization that should check if the builtin method has been redefined or not. (did not check Java port)
I'm afraid checking for that would really kill performance, so while I understand one might expect this behavior, I don't think it's desirable to handle it.
Activity
marcandre commentedon Jun 30, 2020
I confirm that this bug is still present. It affects the C implementation, but not
json/pure. This is due to an optimization that should check if the builtin method has been redefined or not. (did not check Java port)byroot commentedon Oct 18, 2024
I'm afraid checking for that would really kill performance, so while I understand one might expect this behavior, I don't think it's desirable to handle it.