diff options
| author | U.Nakamura <usa@ruby-lang.org> | 2023-11-06 20:22:27 +0900 |
|---|---|---|
| committer | U.Nakamura <usa@ruby-lang.org> | 2023-11-06 20:22:27 +0900 |
| commit | 881088e06f092d20a361c9528b2927cdc2b1616c (patch) | |
| tree | 3e155b6a05ea2684c1fc5b2d67cdf54e313709c5 /include/ruby/internal/intern/process.h | |
| parent | 4f7b595815bd75706c276b03c8d445748e869f2e (diff) | |
merge revision(s) 4329554f171fdb483cafa672df5f2a08741940c5: [Backport #19985]
[Bug #19985] Raise LoadError with the converted feature name
`Kernel#require` converts feature name objects that have the `to_path`
method such as `Pathname`, but had used the original object on error
and had resulted in an unexpected `TypeError`.
---
load.c | 14 +++++++++++---
test/ruby/test_require.rb | 26 +++++++++++++++++++++-----
2 files changed, 32 insertions(+), 8 deletions(-)
Diffstat (limited to 'include/ruby/internal/intern/process.h')
0 files changed, 0 insertions, 0 deletions
