Commit 5e6ea6c
committed
vm.c: restore visibility when reopen class/module definition
Ideally, the default visibility should be stored in the scope. But for
the time being mruby stores the visibility in the class/module. As a
result, nesting class/module reopening or class_eval/module_eval could
cause incompatibility. We will try to fix them in the future.1 parent 2a876d2 commit 5e6ea6c
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
| 1014 | + | |
1014 | 1015 | | |
1015 | 1016 | | |
1016 | 1017 | | |
| |||
2940 | 2941 | | |
2941 | 2942 | | |
2942 | 2943 | | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
2943 | 2947 | | |
2944 | 2948 | | |
2945 | 2949 | | |
| |||
0 commit comments