Skip to content

Commit 4644d14

Browse files
committed
Fix the missed vm_ns during rebase to follow the change b227a94
1 parent f58f7f2 commit 4644d14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

load.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,10 @@ get_loaded_features_index(const rb_namespace_t *ns)
390390
features_index_add(ns, as_str, INT2FIX(i));
391391
}
392392
/* 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))) {
393+
if (!rb_ary_shared_with_p(features, ns->loaded_features)) {
394394
rb_ary_replace(ns->loaded_features, features);
395395
}
396-
reset_loaded_features_snapshot(vm_ns);
396+
reset_loaded_features_snapshot(ns);
397397

398398
features = ns->loaded_features_snapshot;
399399
long j = RARRAY_LEN(features);

0 commit comments

Comments
 (0)