summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2022-03-11 21:43:47 -0800
committerJeremy Evans <code@jeremyevans.net>2022-06-06 11:12:55 -0700
commitc85d1cda86d75ee2c3f7b42f22c543409cb5a186 (patch)
tree399add0e67c0d5d09932a3c3d05e82c3c3ebf2b5 /re.c
parent653e517eefaa0c4f2710b30b4dff9a9dad7b9d6a (diff)
downloadruby-c85d1cda86d75ee2c3f7b42f22c543409cb5a186.tar.gz
Fix Module#const_source_location for autoload constants with direct requires
If an autoload exists for a constant, but the path for the autoload was required, const_source_location would return [false, 0] instead of the actual file and line. This fixes it by setting the appropriate file and line in rb_const_set, and saving the file and line in const_tbl_update before they get reset by current_autoload_data. Fixes [Bug #18624]
Diffstat (limited to 're.c')
0 files changed, 0 insertions, 0 deletions