Actions
Bug #7865
closedA required file is not added to $LOADED_FEATURES until after it has run
Description
=begin
Required files are not added to $LOADED_FEATURES until after they have been executed.
This is easily demonstrated with two files, a.rb and b.rb:
a.rb¶
require "./b"
p $LOADED_FEATURES.grep(/b.rb/).any?
b.rb¶
p $LOADED_FEATURES.grep(/b.rb/).any?
Running (({a.rb})) should print:
true
true
But it current prints:
false
true
=end
Actions
Like0
Like0Like0