mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
parse.y: hide compile_option
* parse.y (parser_set_compile_option_flag): hide compile_option hash from ObjectSpace. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0cd34e9639
commit
43f7eacdac
1 changed files with 1 additions and 1 deletions
2
parse.y
2
parse.y
|
@ -7093,7 +7093,7 @@ parser_set_compile_option_flag(struct parser_params *parser, const char *name, c
|
|||
if (b < 0) return;
|
||||
|
||||
if (!parser->compile_option)
|
||||
parser->compile_option = rb_ident_hash_new();
|
||||
parser->compile_option = rb_obj_hide(rb_ident_hash_new());
|
||||
rb_hash_aset(parser->compile_option, ID2SYM(rb_intern(name)),
|
||||
(b ? Qtrue : Qfalse));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue