mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Implement a freeze: parser option
If set to true all parsed objects will be immediately frozen, and strings will be deduplicated if the Ruby implementation allows it.
This commit is contained in:
parent
f6680c9ad1
commit
520e0916af
6 changed files with 147 additions and 45 deletions
|
@ -37,6 +37,7 @@ typedef struct JSON_ParserStruct {
|
|||
int allow_nan;
|
||||
int parsing_name;
|
||||
int symbolize_names;
|
||||
int freeze;
|
||||
VALUE object_class;
|
||||
VALUE array_class;
|
||||
VALUE decimal_class;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue