Commit 98780de
committed
Don't mutate JSON.dump_default_options from dump
The use of Hash#update from the JSON.dump method was mutating the
dump_default_options hash on any call to dump with a limit provided. An
individual method call with an overriding value shouldn't update the
defaults in this way.1 parent 5a43319 commit 98780de
2 files changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
390 | 390 | | |
391 | 391 | | |
392 | 392 | | |
393 | | - | |
| 393 | + | |
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
518 | 524 | | |
519 | 525 | | |
520 | 526 | | |
| |||
0 commit comments