diff options
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4939,8 +4939,10 @@ VALUE ruby_suppress_tracing(VALUE (*func)(VALUE, int), VALUE arg, int always); static VALUE debug_lines(const char *f) { - if (rb_const_defined_at(rb_cObject, rb_intern("SCRIPT_LINES__"))) { - VALUE hash = rb_const_get_at(rb_cObject, rb_intern("SCRIPT_LINES__")); + ID script_lines; + CONST_ID(script_lines, "SCRIPT_LINES__"); + if (rb_const_defined_at(rb_cObject, script_lines)) { + VALUE hash = rb_const_get_at(rb_cObject, script_lines); if (TYPE(hash) == T_HASH) { VALUE fname = rb_str_new2(f); VALUE lines = rb_ary_new(); |