diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-12-01 15:51:26 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-12-01 16:47:06 +0900 |
| commit | 86045fca24be94db7a9cbf7a9126e43c212dcc55 (patch) | |
| tree | 9d75e4900a44ea6eedd592a7492ff1098e10d97b /ext/json/parser/parser.c | |
| parent | 0dfeb172968cdaefca2ab828c94d3e5f44d91f8f (diff) | |
Manually merged from flori/json
> https://github.com/flori/json/pull/525
> Rename escape_slash in script_safe and also escape E+2028 and E+2029
Co-authored-by: Jean Boussier <jean.boussier@gmail.com>
> https://github.com/flori/json/pull/454
> Remove unnecessary initialization of create_id in JSON.parse()
Co-authored-by: Watson <watson1978@gmail.com>
Diffstat (limited to 'ext/json/parser/parser.c')
| -rw-r--r-- | ext/json/parser/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/json/parser/parser.c b/ext/json/parser/parser.c index bcd0816f90..57f87432b6 100644 --- a/ext/json/parser/parser.c +++ b/ext/json/parser/parser.c @@ -1902,7 +1902,7 @@ static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self) json->max_nesting = 100; json->allow_nan = 0; json->create_additions = 0; - json->create_id = rb_funcall(mJSON, i_create_id, 0); + json->create_id = Qnil; json->object_class = Qnil; json->array_class = Qnil; json->decimal_class = Qnil; |
