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 21709a5 commit 09c0670Copy full SHA for 09c0670
load.c
@@ -410,8 +410,8 @@ get_loaded_features_index(rb_vm_t *vm)
410
features_index_add(vm, as_str, INT2FIX(i));
411
}
412
/* The user modified $LOADED_FEATURES, so we should restore the changes. */
413
- if (!rb_ary_shared_with_p(features, CURRENT_NS_LOADED_FEATURES(vm_ns))) {
414
- rb_ary_replace(CURRENT_NS_LOADED_FEATURES(vm_ns), features);
+ if (!rb_ary_shared_with_p(features, vm->loaded_features)) {
+ rb_ary_replace(vm->loaded_features, features);
415
416
reset_loaded_features_snapshot(vm);
417
0 commit comments