We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f58f7f2 commit 4644d14Copy full SHA for 4644d14
load.c
@@ -390,10 +390,10 @@ get_loaded_features_index(const rb_namespace_t *ns)
390
features_index_add(ns, as_str, INT2FIX(i));
391
}
392
/* The user modified $LOADED_FEATURES, so we should restore the changes. */
393
- if (!rb_ary_shared_with_p(features, CURRENT_NS_LOADED_FEATURES(vm_ns))) {
+ if (!rb_ary_shared_with_p(features, ns->loaded_features)) {
394
rb_ary_replace(ns->loaded_features, features);
395
396
- reset_loaded_features_snapshot(vm_ns);
+ reset_loaded_features_snapshot(ns);
397
398
features = ns->loaded_features_snapshot;
399
long j = RARRAY_LEN(features);
0 commit comments