Skip to content

Commit ccbf066

Browse files
committed
No need to set namespace to the frame start evaluating main
* rb_vm_current_namespace() returns main_namespace if it's ready, root_namespace otherwise on the top of main_stack.
1 parent 88b5287 commit ccbf066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2972,7 +2972,7 @@ rb_iseq_eval_main(const rb_iseq_t *iseq)
29722972
{
29732973
rb_execution_context_t *ec = GET_EC();
29742974
VALUE val;
2975-
vm_set_main_stack(ec, iseq); // TODO: not need to set the namespace?
2975+
vm_set_main_stack(ec, iseq);
29762976
val = vm_exec(ec);
29772977
return val;
29782978
}

0 commit comments

Comments
 (0)