Fix hidden bug in `rb_feature_p` #63

Closed
wants to merge 1 commit into
from

Conversation

1 participant

lazy assigned load_path searched in loading_table were not expanded (line #186),
but all features, pushed to loading table, are expanded.

This bug is hidden because load_path is allways filled in loaded_features loop (line #160),
but if we try to optimize this loop (http://redmine.ruby-lang.org/issues/5427 , https://gist.github.com/1272991),
then load_path could be not filled, and bug exposed.

Fix hidden bug in `rb_feature_p`
lazy assigned load_path searched in loading_table were not expanded (line #186),
but all features, pushed to loading table, are expanded.

This bug is hidden because load_path is allways filled in loaded_features loop (line #160),
but if we try to optimize this loop (http://redmine.ruby-lang.org/issues/5427), 
then load_path could be not filled, and bug exposed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment