summaryrefslogtreecommitdiff
path: root/load.c
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-02-28 12:12:45 -0500
committerKevin Newton <[email protected]>2024-02-28 12:42:57 -0500
commitf8355e88d60a02c215551ddfc0952dc6beb3bdf9 ()
treee448954dcce82fa5e3490e97692bb82ecea15f8c /load.c
parentdcc976add9cb92d0dae75f85428a7751e7b40bef (diff)
[PRISM] Do not load -r until we check if main script can be read
-rw-r--r--load.c2
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);
if (error == Qnil) {
iseq = pm_iseq_new_top(&result.node, rb_fstring_lit("<top (required)>"), fname, realpath_internal_cached(realpath_map, fname), NULL);