Actions
Bug #18173
closedThe feature in `$LOADED_FEATURES` is loaded again
Bug #18173:
The feature in `$LOADED_FEATURES` is loaded again
Description
In general, the feature name registered in $LOADED_FEATURES
(e.g. "enumerator.so", "thread.rb", and so on) is expected not to be loaded again.
But, as @ko1 (Koichi Sasada) reported, when a feature name is added to the variable during another file is required, it will be loaded again.
$ echo 'raise __FILE__' > target.rb
$ echo '$" << "target.rb"' > provide.rb
$ ruby -r./provide.rb target.rb
target.rb:1:in `<main>': target.rb (RuntimeError)
Actions