1
0
Fork 0
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:
Jean Boussier 2020-09-09 15:24:22 +02:00 committed by Hiroshi SHIBATA
parent f6680c9ad1
commit 520e0916af
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2
6 changed files with 147 additions and 45 deletions

View file

@ -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;