diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-08-25 16:53:29 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-08-25 18:23:05 +0900 |
commit | 6aa16f9ec14a296f549dc955774ad2293d1c54d6 (patch) | |
tree | 39498c84bbdf2d7edd499d6e60642c1ca34cb908 /iseq.c | |
parent | d9cba2fc74addc3e0a6da0fe230fd333fb1c31ac (diff) |
Move SCRIPT_LINES__ away from parse.y
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8289
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1122,6 +1122,7 @@ rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE realpath, VALUE line, V const rb_iseq_t *outer_scope = rb_iseq_new(NULL, name, name, Qnil, 0, ISEQ_TYPE_TOP); VALUE outer_scope_v = (VALUE)outer_scope; rb_parser_set_context(parser, outer_scope, FALSE); + rb_parser_set_script_lines(parser, RBOOL(ruby_vm_keep_script_lines)); RB_GC_GUARD(outer_scope_v); ast = (*parse)(parser, file, src, ln); } |