diff options
author | Kevin Newton <kddnewton@gmail.com> | 2024-02-28 12:12:45 -0500 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2024-02-28 12:42:57 -0500 |
commit | f8355e88d60a02c215551ddfc0952dc6beb3bdf9 (patch) | |
tree | e448954dcce82fa5e3490e97692bb82ecea15f8c /load.c | |
parent | dcc976add9cb92d0dae75f85428a7751e7b40bef (diff) |
[PRISM] Do not load -r until we check if main script can be read
Diffstat (limited to 'load.c')
-rw-r--r-- | load.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -747,7 +747,7 @@ load_iseq_eval(rb_execution_context_t *ec, VALUE fname) pm_parse_result_t result = { 0 }; result.options.line = 1; - VALUE error = pm_parse_file(&result, fname); + VALUE error = pm_load_parse_file(&result, fname); if (error == Qnil) { iseq = pm_iseq_new_top(&result.node, rb_fstring_lit("<top (required)>"), fname, realpath_internal_cached(realpath_map, fname), NULL); |