Commit afe5f77
[ruby/json] Keep Integer#to_json optimized and adapt the test
* Redefining Integer#to_s is bound to break many things,
any non-segfault outcome should be acceptable.
So adapt the test to just ensure it does not segfault.
* Also redefining Kernel#String would also break with the previous code.
ruby/json@ac0670b20b1 parent 4a08bb7 commit afe5f77
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
508 | | - | |
| 507 | + | |
| 508 | + | |
509 | 509 | | |
510 | | - | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
511 | 515 | | |
512 | 516 | | |
513 | 517 | | |
| |||
0 commit comments